chore: sync new models#910
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex (@codex) review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9e886d68e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| "input_cost_per_mil_tokens": 3, | ||
| "output_cost_per_mil_tokens": 15, | ||
| "input_cache_read_cost_per_mil_tokens": 0.3, | ||
| "input_cache_write_cost_per_mil_tokens": 3.75, |
There was a problem hiding this comment.
Update Claude Sonnet 5 cache-write duration prices
When claude-sonnet-5 cache creation is priced with explicit 5m/1h cache-control durations, this update now uses the new base write price of 3.75 but leaves the duration-specific prices at the old 2.5/4 values. Those fields are part of the model schema (input_cache_write_5m_cost_per_mil_tokens and input_cache_write_1h_cost_per_mil_tokens), and the adjacent Vertex entry for the same model uses 3.75/6, so requests through the alias will under-report or under-bill cache writes for those durations.
Useful? React with 👍 / 👎.
c9e886d to
35850b6
Compare
Codex Review Response (PR #910)AddressedUpdate Claude Sonnet 5 cache-write duration prices (P2) Fixed stale
These now match the Vertex entry ( |
35850b6 to
2b78718
Compare
|
Codex (@codex) review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b78718524
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| ], | ||
| "max_input_tokens": 1000000, | ||
| "max_output_tokens": 128000, | ||
| "max_output_tokens": 64000, |
There was a problem hiding this comment.
Restore Sonnet 4.6's 128k output limit
For Claude Sonnet 4.6 requests that omit max_tokens, openaiParamsToAnthropicMesssageParams uses modelSpec?.max_output_tokens as the value sent to Anthropic, so this catalog value becomes the hard output cap. Anthropic's migration guide documents 128k max output tokens for Claude Sonnet 4.6, so lowering this to 64k will cap long generations that previously relied on the default: https://platform.claude.com/docs/en/about-claude/models/migration-guide
Useful? React with 👍 / 👎.
| "input_cost_per_mil_tokens": 1.4, | ||
| "output_cost_per_mil_tokens": 4.4, | ||
| "input_cache_read_cost_per_mil_tokens": 0.14, | ||
| "input_cache_read_cost_per_mil_tokens": 0.26, |
There was a problem hiding this comment.
Keep GLM 5.2 cached-input price at $0.14
For Fireworks GLM 5.2 usage with prompt caching, this catalog value is the per-1M cached-input price used by downstream cost calculations. Fireworks' model page for accounts/fireworks/models/glm-5p2 lists $1.40 / $0.14 / $4.40 per 1M tokens for input/cached input/output, so changing cached input to $0.26 will overstate cached-token costs by about 86%: https://fireworks.ai/models/fireworks/glm-5p2
Useful? React with 👍 / 👎.
2b78718 to
296144a
Compare
Codex Review Response — PR #910Issues Addressed1. Claude Sonnet 4.6
|
296144a to
1a8524f
Compare
|
Codex (@codex) review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a8524f826
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| ], | ||
| "max_input_tokens": 1000000, | ||
| "max_output_tokens": 128000, | ||
| "max_output_tokens": 64000, |
There was a problem hiding this comment.
Restore Sonnet 4.6's 128k output budget
Anthropic documents Sonnet 4.6 as having the same 128k max output as Sonnet 5 in the Sonnet 5 migration guide. This entry is the canonical Anthropic model, and openaiParamsToAnthropicMesssageParams uses modelSpec?.max_output_tokens as the default when callers omit max_tokens, so lowering it to 64k silently halves the response budget for default claude-sonnet-4-6 requests even though the provider supports 128k.
Useful? React with 👍 / 👎.
| "input_cost_per_mil_tokens": 1.4, | ||
| "output_cost_per_mil_tokens": 4.4, | ||
| "input_cache_read_cost_per_mil_tokens": 0.14, | ||
| "input_cache_read_cost_per_mil_tokens": 0.26, |
There was a problem hiding this comment.
Preserve the GLM 5.2 cached-input price
The current Fireworks serverless pricing lists GLM 5.2 Standard as $1.40 / $0.14 / $4.40 per 1M input/cached/output tokens, and Fireworks maps Standard to accounts/fireworks/models/glm-5p2 in the GLM 5.2 Fast announcement. Changing this cached-input price to 0.26 applies the older/other-provider rate to every cached-token cost calculation for this Fireworks model, overcharging those requests instead of using the documented $0.14 rate.
Useful? React with 👍 / 👎.
Codex Review ResponseTwo issues were raised; both were confirmed regressions introduced by the automated model catalog sync and have been fixed. 1. claude-sonnet-4-6 max_output_tokens restored to 128k (P2)The sync lowered 2. accounts/fireworks/models/glm-5p2 cached-input price restored to 0.14 (P1)The sync changed Note: the |
1a8524f to
3b044f4
Compare
Automated sync of model metadata and newly available models from the approved provider allowlist.