Skip to content

fix(mistral): add devstral models with correct 262K context length#6867

Merged
michaelneale merged 1 commit intoblock:mainfrom
Sean-Kenneth-Doherty:fix/devstral-context-length
Feb 3, 2026
Merged

fix(mistral): add devstral models with correct 262K context length#6867
michaelneale merged 1 commit intoblock:mainfrom
Sean-Kenneth-Doherty:fix/devstral-context-length

Conversation

@Sean-Kenneth-Doherty
Copy link
Contributor

Summary

Fixes #6185

Problem

Devstral models (devstral-2512 and devstral-small-2505) were missing from the Mistral provider's declarative model list, causing Goose to fall back to the default 128K context limit instead of the actual 262144 tokens supported by these models.

Solution

Added both devstral models to mistral.json with their correct context_limit values (262144) as confirmed by the Mistral API:

curl -s https://api.mistral.ai/v1/models -H "Authorization: Bearer $MISTRAL_API_KEY" \
  | jq '.data[] | select(.id == "devstral-2512") | {id, max_context_length}'
# Returns: {"id": "devstral-2512", "max_context_length": 262144}

Changes

  • Added devstral-2512 with context_limit: 262144
  • Added devstral-small-2505 with context_limit: 262144

Testing

  • Verified the context values match Mistral's official API documentation
  • The canonical_models.json already had these models with correct context limits for OpenRouter

Fixes block#6185

Devstral models (devstral-2512 and devstral-small-2505) were missing from
the Mistral provider's declarative model list, causing Goose to fall back
to the default 128K context limit instead of the actual 262144 tokens
supported by these models.

This adds both devstral models with their correct context_limit values
as confirmed by the Mistral API.
@michaelneale michaelneale self-assigned this Feb 3, 2026
@michaelneale
Copy link
Collaborator

thanks @Sean-Kenneth-Doherty - can you sign the DCO so we can get this in?

Copy link
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

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

can merge when DCO signed, thanks!

@michaelneale michaelneale added this pull request to the merge queue Feb 3, 2026
Merged via the queue into block:main with commit bbcfe7f Feb 3, 2026
16 of 17 checks passed
stebbins pushed a commit to stebbins/goose that referenced this pull request Feb 4, 2026
kuccello pushed a commit to kuccello/goose that referenced this pull request Feb 7, 2026
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.

Devstral models show incorrect context length (128K instead of 262K)

2 participants