You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TASK] Refactor pricing lookup fallback for dated model ids #1155
Pricing lookups miss dated model ids. With judge.model: anthropic/claude-haiku-4-5-20251001, /stats counts the judge's tokens but shows no cost, because the pricing table has no entry for the dated id. Any provider that versions model ids by date has the same gap, so cost totals under-report.
Add a fallback that strips a trailing date suffix (-YYYYMMDD) before the pricing lookup, or otherwise matches dated ids to their base entry.
Acceptance Criteria
CalculateCost resolves a dated model id to its undated pricing entry when no exact entry exists
/stats and session_stats show a cost for anthropic/claude-haiku-4-5-20251001
A table test covers exact, dated-fallback, and unknown ids
Premise no longer holds: the CLI's static pricing table was removed in #941, and prices now come from the gateway's /v1/models?include=pricing. The gateway's community pricing table already has an explicit entry for anthropic/claude-haiku-4-5-20251001 (since gateway v0.35.0), so the dated id resolves without a suffix-stripping fallback. If /stats still shows no judge cost, that is a separate bug (usage recorded before the model list is fetched, or a gateway older than v0.35.0); verify with curl 'http://localhost:8080/v1/models?include=pricing' before reopening.
Activity
feat(agent): add auto-with-judge mode with an LLM judge as the tool a…
edenreich commentedon Sep 2, 2026
Premise no longer holds: the CLI's static pricing table was removed in #941, and prices now come from the gateway's
/v1/models?include=pricing. The gateway's community pricing table already has an explicit entry foranthropic/claude-haiku-4-5-20251001(since gateway v0.35.0), so the dated id resolves without a suffix-stripping fallback. If/statsstill shows no judge cost, that is a separate bug (usage recorded before the model list is fetched, or a gateway older than v0.35.0); verify withcurl 'http://localhost:8080/v1/models?include=pricing'before reopening.