Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Sep 29, 2025

This PR attempts to address Issue #8362 by updating the magistral-medium-latest model configuration to reflect the current capabilities as documented by Mistral.

Changes Made

  • Updated maxTokens from 41,000 to 128,000
  • Updated contextWindow from 41,000 to 128,000
  • Enabled image support (supportsImages: true)

Context

The previous configuration reflected the capabilities from the Magistral Medium 1.1 release (July 2025) with a 41k token context window and no image input support. The current Magistral Medium 2.0 model supports a 128k context window and image input capabilities.

Testing

  • ✅ All existing tests pass
  • ✅ Type checking passes
  • ✅ Linting passes

Related Issue

Fixes #8362

Feedback and guidance are welcome!


Important

Update magistral-medium-latest model in mistral.ts to reflect Mistral 2.0 capabilities with increased token limits and image support.

  • Model Configuration:
    • Updated magistral-medium-latest in mistral.ts:
      • maxTokens increased from 41,000 to 128,000.
      • contextWindow increased from 41,000 to 128,000.
      • supportsImages set to true.

This description was created by Ellipsis for fd234ff. You can customize this summary. It will automatically update as commits are pushed.

…image support

- Updated maxTokens from 41,000 to 128,000
- Updated contextWindow from 41,000 to 128,000
- Enabled image support (supportsImages: true)
- Reflects current Magistral Medium 2.0 capabilities per Mistral documentation

Fixes #8362
@roomote roomote bot requested review from cte, jr and mrubens as code owners September 29, 2025 13:32
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Sep 29, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Sep 29, 2025
Copy link
Contributor Author

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

Self-review: evaluating my own diff like a mirror that files change requests back at me.

supportsImages: false,
maxTokens: 128_000,
contextWindow: 128_000,
supportsImages: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

P3: Consider adding a brief comment with the source URL and "last verified" date for these capabilities. This helps keep the values aligned with Mistral's docs during future updates.

maxTokens: 128_000,
contextWindow: 128_000,
supportsImages: true,
supportsPromptCache: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

P3: Confirm whether Magistral Medium 2.0 supports prompt cache. If yes, flipping supportsPromptCache to true would enable cache-aware UX and cost accounting elsewhere.

contextWindow: 128_000,
supportsImages: true,
supportsPromptCache: false,
inputPrice: 2.0,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

P2: Prices appear unchanged (inputPrice: 2.0, outputPrice: 5.0). If Mistral updated pricing for Magistral Medium 2.0, consider aligning these with the latest docs to avoid cost estimate mismatches.

@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Oct 14, 2025
@daniel-lxs daniel-lxs closed this Oct 14, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Prelim Review] to Done in Roo Code Roadmap Oct 14, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] magistral-medium-latest with Mistral API provider reflects outdated capability limits

4 participants