mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-24 08:21:39 +00:00
test: fix provider config typing drift
This commit is contained in:
@@ -36,6 +36,23 @@ function createCatalogContext(
|
||||
};
|
||||
}
|
||||
|
||||
function createTestModel(id: string, name: string): ModelDefinitionConfig {
|
||||
return {
|
||||
id,
|
||||
name,
|
||||
reasoning: false,
|
||||
input: ["text"],
|
||||
cost: {
|
||||
input: 0,
|
||||
output: 0,
|
||||
cacheRead: 0,
|
||||
cacheWrite: 0,
|
||||
},
|
||||
contextWindow: 128_000,
|
||||
maxTokens: 4_096,
|
||||
};
|
||||
}
|
||||
|
||||
describe("defineSingleProviderPluginEntry", () => {
|
||||
it("registers a single provider with default wizard metadata", async () => {
|
||||
const entry = defineSingleProviderPluginEntry({
|
||||
|
||||
@@ -22,7 +22,6 @@ function createModel(id: string, name: string): ModelDefinitionConfig {
|
||||
maxTokens: 8_192,
|
||||
};
|
||||
}
|
||||
|
||||
describe("provider onboarding preset appliers", () => {
|
||||
it("creates provider and primary-model appliers for a default model preset", () => {
|
||||
const appliers = createDefaultModelPresetAppliers({
|
||||
|
||||
Reference in New Issue
Block a user