Repository navigation
feat(model-prices): add missing OpenAI dated snapshots for deep research, search preview, audio mini and computer use - #45842
Conversation
…rch, search preview, audio mini and computer use Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
TLDR
Problem this solves:
/v1/modelsreturns had no cost map entryHow it solves it:
sourceto the official OpenAI model page listing the snapshotUser Flow
Before: a developer pins a dated OpenAI snapshot and the request is logged with no cost
"model": "o3-deep-research-2025-06-26"After: the same request is priced at the snapshot's published rates
"model": "o3-deep-research-2025-06-26"Changes by provider
OpenAI
Each new entry copies its base row (rates, limits, endpoints, flags) with only
sourcechanged anddeprecation_dateleft off. Every snapshot is listed under "Snapshots" on its model page, and the page's pricing block matches the base rowo3-deep-research-2025-06-26o3-deep-researcho4-mini-deep-research-2025-06-26o4-mini-deep-researchgpt-audio-mini-2025-10-06gpt-audio-minigpt-4o-search-preview-2025-03-11gpt-4o-search-previewgpt-4o-mini-search-preview-2025-03-11gpt-4o-mini-search-previewcomputer-use-preview-2025-03-11computer-use-previewChecked and left alone
Anthropic, xAI, DeepSeek, Together, Voyage and Gemini image models matched their official API or pricing pages. Mistral
codestral-2508stays at 128k because https://docs.mistral.ai/models/codestral-25-08 says 128k even though/v1/modelsreports 256k. Gemini image models keep their limits because the ai.google.dev model pages match the registryNot added because no per-token price is published: Gemini
antigravity-preview-*(billed at the underlying model's rates per https://ai.google.dev/gemini-api/docs/pricing) andaqa, Groqallam-2-7b(missing from https://groq.com/pricing and https://console.groq.com/docs/models), and Fireworksqwen3p8-2p4t-a95b(on-demand only per https://fireworks.ai/models/fireworks/qwen3p8-2p4t-a95b)Perplexity
pplx-decider-v1-27bshould be $0.02 per 1M input per https://docs.perplexity.ai/getting-started/pricing, but the open PR #45476 already fixes that row and adds v1.1, so it is not repeated hereOther open registry PRs reviewed
Nothing was absorbed. #36274 (Azure gpt-5.6 terra/luna) conflicts with the Azure Retail Prices API, which shows global terra at $2 / $12 and luna at $0.20 / $1.20, the same as main. #43879 duplicates
moonshot/kimi-k2.5as a bare key with a conflicting 8192 output limit. #40368 edits Bedrock Claude 3 Haiku rows that are no longer on main. #30775 adds Grok 4.3 on Bedrock Converse, but the AWS supported-models page does not list it (main already hasbedrock_mantle/xai.grok-4.3). #32117 (Cohere embed light v3) and #45502 (SCX.ai) list prices that the current official pricing pages do not show. Code or behavior PRs that only touch the JSON incidentally were left alone, including #45476, #43390, #33922, #43363, #41857, #29898, #44651, #44167, #43457 and #40755Pre-Submission checklist
uv run pytest tests/unit/<your_test_file>.py -vDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
LITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_schema.py tests/unit/test_model_cost_aliases.pyreturns 92 passed.python3 ci_cd/check_files_match.pypasses, anduv run --no-sync python ci_cd/cost_map_guard.py --base origin/mainpassesLink to Devin session: https://app.devin.ai/sessions/5786090f2b044d3789a4f41c4dc5996f
Open in Devin Desktop: https://app.devin.ai/desktop/session/5786090f2b044d3789a4f41c4dc5996f?variant=devin