Commit Graph
21 Commits
Author SHA1 Message Date
9qeklajc bdc19a6907 fix: preserve nullable forwarded model aliases 2026-08-06 21:54:13 +02:00
Jeroen UbbinkandClaude Fable 5 df4d4c44e6 fix: fail over with each candidate provider's own model
The failover loop resolved a single Model for the request and reused it
for every provider: a fallback provider was asked to serve the routing
winner's model id and billed at the winner's pricing and fee. The alias
map now keeps (model, provider) candidate pairs, the proxy rebinds both
per attempt, and forwarding, max-cost echo, and settlement all use the
candidate actually being tried. On a failover serve the response's
model field now names the serving candidate's id.

The unified candidate lookup also applies the version-suffix strip
(-YYYYMMDD) that model resolution already had, so version-suffixed
requests no longer resolve a model yet 400 with "no provider found".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 15:12:21 +02:00
9qeklajc edfb0f127c fix provider-scoped model overrides 2026-07-07 13:59:23 +02:00
9qeklajc 26a0b04aef strict fallback 2026-05-06 00:46:42 +02:00
9qeklajc f7ccc25a7f forward correct model id 2026-05-05 23:57:41 +02:00
9qeklajc 685368bb0a add support to using custom model ids 2026-04-06 20:09:12 +02:00
9qeklajc 173f5fbcbd make sure the models with lowest prices are forwarded 2026-03-13 22:59:09 +01:00
Evan Yang ce9834d7ec fix: harden azure routing and model override mapping 2026-02-10 19:15:25 +08:00
9qeklajc 6ebe73f2f7 Fix Azure Kimi routing and DB override model mapping 2026-02-10 07:32:54 +00:00
Shroominic e7f4c98475 ranked provider fallback on upstream errors 2026-01-07 17:39:05 +01:00
9qeklajc a6d0bd1a19 update aliases 2025-12-23 23:43:16 +01:00
Shroominic 4c7887fa4e update algorithm logs 2025-12-11 11:04:00 +08:00
Shroominic b8c34afef8 improve logging 2025-12-11 10:50:50 +08:00
Shroominic 34d1e4b041 populate upstream_provider_id 2025-12-09 15:03:16 +08:00
ShroominicandCursor Agent f13638387f fix provider getattr 2025-11-23 21:51:36 +00:00
Shroominic 320cfe82fd auto populate providers from available classes 2025-11-11 16:10:42 +08:00
Shroominic e3b146b83f Merge branch 'upstream-refactor' into v0.2.0 2025-11-11 13:09:02 +08:00
Shroominic b7e4fbf739 fix model alias problem for anthropic 2025-11-11 12:43:02 +08:00
Shroominic d9d2e17e5d refactor upstream files and classes 2025-11-06 17:23:37 +08:00
Shroominic 1c7cbf64ef ruff fmt 2025-11-03 22:24:27 +08:00
Shroominic 39047361d6 model/provider selection based on pricing 2025-11-01 13:47:23 +08:00