mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-28 06:23:01 +00:00
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>