mirror of https://github.com/openclaw/openclaw.git
test: fix provider config typing drift
This commit is contained in:
parent
8ff277d2a2
commit
f04b49ee3e
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue