Commit Graph
9 Commits
Author SHA1 Message Date
9qeklajc 7f729de48e test: reproduce forwarded model ID alias regression 2026-07-28 02:14:02 +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
Evan Yang ce9834d7ec fix: harden azure routing and model override mapping 2026-02-10 19:15:25 +08:00
Shroominic cb36189db3 fmt 2026-01-09 17:04:09 +08:00
Shroominic d2487f42b0 fix tests 2026-01-09 17:02:35 +08:00
Shroominic 320cfe82fd auto populate providers from available classes 2025-11-11 16:10:42 +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