Skip to content

Comments

feat: expand model pricing for Anthropic, OpenAI, and Gemini models#16

Merged
larsderidder merged 1 commit intolarsderidder:mainfrom
casidiablo:feat/expand-model-pricing
Feb 24, 2026
Merged

feat: expand model pricing for Anthropic, OpenAI, and Gemini models#16
larsderidder merged 1 commit intolarsderidder:mainfrom
casidiablo:feat/expand-model-pricing

Conversation

@casidiablo
Copy link
Contributor

@casidiablo casidiablo commented Feb 22, 2026

Summary

  • Corrects two stale values: claude-sonnet-4 context window (200k → 1M) and o3 price ($10 → $2/MTok per current OpenAI API pricing)
  • Updates the two affected test assertions in test/models.test.ts

Root cause

estimateCost() does substring matching against MODEL_PRICING. Any model string with no matching key returns null, which aggregates as 0 in the summary endpoint and renders as $0.00 in the UI.

Fixes blank Total Cost display for models not previously in the pricing
table (e.g. google/gemini-3.1-pro-preview via OpenRouter). Adds current
pricing and context limits for all Anthropic, OpenAI, and Gemini models
routed by context-lens, corrects two stale values (claude-sonnet-4 context
window, o3 price), and updates the two affected test assertions.
@larsderidder larsderidder merged commit 8e397ca into larsderidder:main Feb 24, 2026
1 check passed
@larsderidder
Copy link
Owner

Thanks! Very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants