mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-18 05:02:15 +03:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user