Skip to content

Fix/minimax context window and models#12069

Merged
hannesrudolph merged 3 commits intoRooCodeInc:mainfrom
Rexarrior:fix/minimax-context-window-and-models
Apr 8, 2026
Merged

Fix/minimax context window and models#12069
hannesrudolph merged 3 commits intoRooCodeInc:mainfrom
Rexarrior:fix/minimax-context-window-and-models

Conversation

@Rexarrior
Copy link
Copy Markdown
Contributor

@Rexarrior Rexarrior commented Apr 6, 2026

  • Add MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5-highspeed, MiniMax-M2.1-highspeed models
  • Update contextWindow for MiniMax-M2 and MiniMax-M2.1 from 192000 to 204800
  • Add pricing links and TokenPlan billing notes to model descriptions
  • Add highspeed subscription note to -highspeed models
  • Update tests for new models and corrected contextWindow values

Related GitHub Issue

Closes: #11999
Note; unfortunally, there is no way to get models list dynamically from the provider. So, i've skip changes, related to fix of this aspect.

Related Issues (Addressing Long-Standing Requests)

This PR also addresses several related MiniMax model requests that have been waiting for implementation:

Roo Code Task Context (Optional)

Description

Adds the complete set of MiniMax M2 series models to the Roo Code provider:

  • MiniMax-M2.7 - New model with 204,800 context window
  • MiniMax-M2.7-highspeed - High-speed variant (100 tps vs 60 tps)
  • MiniMax-M2.5-highspeed - High-speed variant of existing M2.5
  • MiniMax-M2.1-highspeed - High-speed variant of existing M2.1

Also fixes incorrect context window values:

  • MiniMax-M2: 192,000 → 204,800
  • MiniMax-M2.1: 192,000 → 204,800

Updated model descriptions to include:

  • Links to MiniMax pricing
  • Note about TokenPlan billing: "When using TokenPlan, usage is billed per request, not per token."
  • High-speed subscription requirements for -highspeed models

Test Procedure

  • Unit tests pass: 30 MiniMax provider tests + 23 useSelectedModel tests
  • Manual testing confirmed new models appear in model selector
  • Verified context window values display correctly (204,800) for all M2 series models

Pre-Submission Checklist

Screenshots / Videos

Documentation Updates

  • No documentation updates are required.

Additional Notes

Get in Touch

Diskord: rexarrior
telegram: t.me/rexarrior
email: rexarrior@yandex.ru

Interactively review PR in Roo Code Cloud

- Add MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5-highspeed, MiniMax-M2.1-highspeed models
- Update contextWindow for MiniMax-M2 and MiniMax-M2.1 from 192000 to 204800
- Add pricing links and TokenPlan billing notes to model descriptions
- Add highspeed subscription note to -highspeed models
- Update tests for new models and corrected contextWindow values
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request labels Apr 6, 2026
@hannesrudolph
Copy link
Copy Markdown
Collaborator

@roomote is this solid?

@roomote-v0
Copy link
Copy Markdown
Contributor

roomote-v0 bot commented Apr 8, 2026

Fixaroo Clock   See task

Fixed the core issue from #11999: unknown/custom MiniMax model IDs are now passed through to the API instead of being silently replaced with the default, and the frontend falls back to default model info so context window no longer displays as 1. All tests and checks pass (31 backend + 24 frontend tests).

View commit | Revert commit

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 8, 2026
@hannesrudolph hannesrudolph merged commit eafed97 into RooCodeInc:main Apr 8, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] MiniMax provider, model m2.7 (when use as custom value ) - bad context length (extremly small)

2 participants