diff --git a/tests/unit/provider-models-route.test.ts b/tests/unit/provider-models-route.test.ts index fc6cbb7d53..be36ef661a 100644 --- a/tests/unit/provider-models-route.test.ts +++ b/tests/unit/provider-models-route.test.ts @@ -576,7 +576,7 @@ test("provider models route prefers the remote OpenRouter /models API over stati // on dedicated endpoints), so the curated specialty catalog is folded into the // live-discovery response additively; static IMAGE models stay excluded // (hasChatRegistry is true for openrouter — see staticModels.ts). - const ids = body.models.map((m: any) => m.id); + const ids = body.models.map((m: { id: string }) => m.id); assert.ok(ids.includes("openai/gpt-4.1"), "live-fetched chat model is preserved"); assert.ok(ids.includes("baai/bge-m3"), "curated embedding is merged in"); assert.ok(ids.includes("cohere/rerank-v3.5"), "curated rerank is merged in");