mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-21 22:52:19 +03:00
fix(pricing): 3 dead entries in LITELLM_PROVIDER_MAP silently drop synced pricing (#10636)
Merged — locally validated (28/28 focused pricing-sync tests, gates green). Excellent systematic audit of the whole alias map, not just the one you hit. Thanks!
This commit is contained in:
@@ -138,9 +138,14 @@ describe("transformToOmniRoute", () => {
|
||||
|
||||
const result = transformToOmniRoute(raw);
|
||||
|
||||
// deepseek maps to "if" alias
|
||||
assert.ok(result.if, "Should map deepseek to if alias");
|
||||
assert.ok(result.if["deepseek-chat"]);
|
||||
// deepseek maps to "ds" (its real registry alias — open-sse/config/providers/
|
||||
// registry/deepseek/index.ts). Previously mapped to "if" (Qoder's alias, an
|
||||
// unrelated provider) — fixed alongside the other dead LITELLM_PROVIDER_MAP
|
||||
// entries (bedrock/bedrock_converse/cloudflare) that pointed at a provider's
|
||||
// `id` instead of its `alias`.
|
||||
assert.ok(result.ds, "Should map deepseek to its real ds alias");
|
||||
assert.ok(result.ds["deepseek-chat"]);
|
||||
assert.ok(!result.if, "Must not route deepseek pricing onto Qoder's if alias");
|
||||
});
|
||||
|
||||
test("skips entries without input cost", () => {
|
||||
|
||||
Reference in New Issue
Block a user