Skip to content

fix: update Mistral model metadata for codestral-latest#703

Merged
Erin McNulty (erin2722) merged 2 commits into
mainfrom
chore/autofix-issue-693
Jun 1, 2026
Merged

fix: update Mistral model metadata for codestral-latest#703
Erin McNulty (erin2722) merged 2 commits into
mainfrom
chore/autofix-issue-693

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

fix: update Mistral model metadata for codestral-latest

Closes #693

Source issue: #693

Summary

Field Value
Provider mistral
Primary model codestral-latest
Changed models codestral-latest
Added models None
Updated models codestral-latest
Verification sources 1
2

Verified metadata

Model Display name Parent Providers Format Flavor Token limits Pricing Lifecycle
codestral-latest Codestral mistral openai chat input=256000, output=null in/out=0.3/0.9 per 1M active

Verification notes

Verification

Official sources consulted

  • Mistral pricing page (https://mistral.ai/pricing): Confirms Codestral at $0.3/M input, $0.9/M output. Verified fields: input_cost_per_mil_tokens, output_cost_per_mil_tokens.
  • Mistral model card for codestral-25-08 (https://docs.mistral.ai/models/model-cards/codestral-25-08): Confirms codestral-latest points to codestral-2508. Verified fields: model alias relationship.
  • Internal catalog consistency: The codestral-2508 entry in model_list.json already has input_cost_per_mil_tokens: 0.3, output_cost_per_mil_tokens: 0.9, max_input_tokens: 256000, and lists codestral-latest as its parent. The -latest alias should match the snapshot it resolves to.

sync_models (LiteLLM) cross-check

The relevant sync_models entry is mistral/codestral-latest:

  • sync_models input_cost_per_token: 1e-06 ($1.00/M) — stale, matches our current stale catalog value
  • sync_models output_cost_per_token: 3e-06 ($3.00/M) — stale, matches our current stale catalog value
  • sync_models max_input_tokens: 32000 — stale, matches our current stale catalog value
  • sync_models max_output_tokens: 8191 — stale, matches our current stale catalog value

All four fields deviate from sync_models mistral/codestral-latest because sync_models has also not updated this entry from the original May 2024 Codestral pricing. The official Mistral pricing page (https://mistral.ai/pricing) and the sync_models mistral/codestral-2508 entry (input: 3e-07 = $0.30/M, output: 9e-07 = $0.90/M, max_input: 256000) both confirm the proposed values. The official source is preferred because codestral-latest resolves to codestral-2508 per Mistral's documentation.

Field Proposed sync_models (mistral/codestral-latest) Source justifying deviation
input_cost_per_mil_tokens 0.3 1.0 https://mistral.ai/pricing — sync_models entry for this alias was never updated
output_cost_per_mil_tokens 0.9 3.0 https://mistral.ai/pricing — sync_models entry for this alias was never updated
max_input_tokens 256000 32000 https://docs.mistral.ai/models/model-cards/codestral-25-08 + sync_models mistral/codestral-2508 agrees at 256000
max_output_tokens (omitted) 8191 Existing codestral-2508 catalog entry omits max_output_tokens; no official source publishes a separate output limit

Fields not changed

  • format: remains "openai" (correct for Mistral provider)
  • flavor: remains "chat" (correct for code generation chat model)
  • displayName: remains "Codestral" (correct for a -latest alias)
  • available_providers: remains ["mistral"] (correct)
  • parent: not applicable — codestral-latest is the stable alias, not a snapshot
  • deprecated: not applicable — model is active
  • supported_regions: not applicable — not a Vertex model

sync_models vs proposed update

sync_models cross-check found differences. Official provider verification was used for the applied values, and sync_models discrepancies are listed below for review.

Model Field Proposed update sync_models sync_models source models
codestral-latest max_input_tokens 256000 32000 mistral/codestral-latest
codestral-latest max_output_tokens n/a 8191 mistral/codestral-latest
codestral-latest input_cost_per_mil_tokens 0.3 1 mistral/codestral-latest
codestral-latest output_cost_per_mil_tokens 0.9 3 mistral/codestral-latest

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-proxy Ready Ready Preview, Comment Jun 1, 2026 10:08pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0dceb0472c

ℹ️ 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".

Comment thread packages/proxy/schema/model_list.json Outdated
"displayName": "Codestral",
"max_input_tokens": 32000,
"max_output_tokens": 8191,
"max_input_tokens": 256000,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Don't advertise a 256k Codestral context

For codestral-latest, this raises the advertised input limit to 256k, but the current official Mistral docs for Codestral 25.08 list the context as 128k (see https://docs.mistral.ai/models/model-cards/codestral-25-08 and the model comparison page). Any UI or caller that relies on this catalog to size prompts can now send requests between 128k and 256k tokens that the Mistral API rejects, so the alias should be capped at 128000 unless there is a provider source for 256k.

Useful? React with 👍 / 👎.

@erin2722 Erin McNulty (erin2722) merged commit d67f4a1 into main Jun 1, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOT ISSUE] Cost update: codestral-latest pricing and context window stale

2 participants