test: fix provider config typing drift

This commit is contained in:
Peter Steinberger 2026-03-22 19:08:32 -07:00
parent 8ff277d2a2
commit f04b49ee3e
No known key found for this signature in database
2 changed files with 17 additions and 1 deletions

View File

@ -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({

View File

@ -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({