Stale metadata (recurring regression)
codestral-2508 has max_input_tokens: 256000 in the catalog but Mistral's official docs confirm the context window is 128,000. The parent alias codestral-latest correctly has max_input_tokens: 128000, creating an inconsistency.
Current vs correct
Current catalog entry (line 10903)
"codestral-2508": {
"format": "openai",
"flavor": "chat",
"input_cost_per_mil_tokens": 0.3,
"output_cost_per_mil_tokens": 0.9,
"displayName": "Codestral 2508",
"parent": "codestral-latest",
"max_input_tokens": 256000,
"available_providers": [
"mistral",
"openrouter"
]
}
The parent codestral-latest (line 10930) correctly has max_input_tokens: 128000.
Cross-source verification
- Mistral model card (docs.mistral.ai/models/model-cards/codestral-25-08): States "Context 128k"
- Mistral known limitations (docs.mistral.ai/resources/known-limitations): Lists Codestral context window as "128k tokens"
Regression history
This gap has been filed and fixed twice before:
The fix keeps being reverted by the automated LiteLLM sync because codestral-2508 is not listed in SYNC_PRESERVED_FIELDS in packages/proxy/scripts/sync_models.ts. The downstream fix should also add "codestral-2508": ["max_input_tokens"] to SYNC_PRESERVED_FIELDS to prevent future regressions.
Local Files Inspected
packages/proxy/schema/model_list.json — codestral-2508 at line 10903 with max_input_tokens: 256000; parent codestral-latest at line 10930 with max_input_tokens: 128000 (correct)
packages/proxy/scripts/sync_models.ts — no entry for codestral-2508 in SYNC_PRESERVED_FIELDS
{
"kind": "stale_metadata",
"provider": "mistral",
"models": ["codestral-2508"],
"status": "active",
"model_specs": {
"codestral-2508": {
"format": "openai",
"flavor": "chat",
"input_cost_per_mil_tokens": 0.3,
"output_cost_per_mil_tokens": 0.9,
"displayName": "Codestral 2508",
"parent": "codestral-latest",
"max_input_tokens": 128000,
"available_providers": [
"mistral",
"openrouter"
]
}
},
"source_urls": [
"https://docs.mistral.ai/models/model-cards/codestral-25-08",
"https://docs.mistral.ai/resources/known-limitations"
]
}
Summary: Fix codestral-2508 context window from 256k to 128k (third occurrence of this regression) and add to SYNC_PRESERVED_FIELDS to prevent future sync reversions.
Stale metadata (recurring regression)
codestral-2508hasmax_input_tokens: 256000in the catalog but Mistral's official docs confirm the context window is 128,000. The parent aliascodestral-latestcorrectly hasmax_input_tokens: 128000, creating an inconsistency.Current vs correct
max_input_tokensCurrent catalog entry (line 10903)
The parent
codestral-latest(line 10930) correctly hasmax_input_tokens: 128000.Cross-source verification
Regression history
This gap has been filed and fixed twice before:
The fix keeps being reverted by the automated LiteLLM sync because
codestral-2508is not listed inSYNC_PRESERVED_FIELDSinpackages/proxy/scripts/sync_models.ts. The downstream fix should also add"codestral-2508": ["max_input_tokens"]toSYNC_PRESERVED_FIELDSto prevent future regressions.Local Files Inspected
packages/proxy/schema/model_list.json—codestral-2508at line 10903 withmax_input_tokens: 256000; parentcodestral-latestat line 10930 withmax_input_tokens: 128000(correct)packages/proxy/scripts/sync_models.ts— no entry forcodestral-2508inSYNC_PRESERVED_FIELDS{ "kind": "stale_metadata", "provider": "mistral", "models": ["codestral-2508"], "status": "active", "model_specs": { "codestral-2508": { "format": "openai", "flavor": "chat", "input_cost_per_mil_tokens": 0.3, "output_cost_per_mil_tokens": 0.9, "displayName": "Codestral 2508", "parent": "codestral-latest", "max_input_tokens": 128000, "available_providers": [ "mistral", "openrouter" ] } }, "source_urls": [ "https://docs.mistral.ai/models/model-cards/codestral-25-08", "https://docs.mistral.ai/resources/known-limitations" ] }Summary: Fix
codestral-2508context window from 256k to 128k (third occurrence of this regression) and add toSYNC_PRESERVED_FIELDSto prevent future sync reversions.