test(providers): type the openrouter merge assertion callback (#6976)

The new #6976 assertion added a 56th explicit `any` to this file,
one over the 55 frozen in config/quality/eslint-suppressions.json,
tripping the max-warnings-0 lint gate. Type the callback param
instead of raising the frozen count — the debt ratchet only decreases.
All 59 tests still pass.
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-07-15 07:04:53 -03:00
parent 3ac194f767
commit 6b03792495

View File

@@ -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");