Files
2307a827d8 fix(budget): price non-Anthropic chat models via the canonical table (takeover of #2127)
lookupPricing consulted only ANTHROPIC_PRICING for chat/rerank, so any
openai:/google:/deepseek: model hit BudgetExhausted(no_pricing) BEFORE the
provider call whenever a cost cap was set. Fall through to canonicalLookup,
per the one-canonical-pricing-table invariant. The original PR's $0
CANONICAL_PRICING entries for openrouter: ids are dropped — openrouter-
prefixed ids intentionally MISS (markup != native pricing), and a $0
canonical entry would zero cost accounting for everyone routing those
models; free-route pricing belongs in per-install config.

Co-authored-by: troyhoffman-oss <troyhoffman-oss@users.noreply.github.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 14:50:54 -07:00
..