mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
test: fix unique model resolution test broken by agentrouter
This commit is contained in:
@@ -17,9 +17,9 @@ import {
|
||||
} from "../../open-sse/handlers/sseParser.ts";
|
||||
|
||||
test("getModelInfoCore resolves unique non-openai unprefixed model", async () => {
|
||||
const info = await getModelInfoCore("claude-haiku-4-5-20251001", {});
|
||||
const info = await getModelInfoCore("claude-sonnet-4-5-20250929", {});
|
||||
assert.equal(info.provider, "claude");
|
||||
assert.equal(info.model, "claude-haiku-4-5-20251001");
|
||||
assert.equal(info.model, "claude-sonnet-4-5-20250929");
|
||||
});
|
||||
|
||||
test("getModelInfoCore keeps openai fallback for gpt-4o", async () => {
|
||||
|
||||
Reference in New Issue
Block a user