feat: upgrade MiniMax default model to M2.7#1654
feat: upgrade MiniMax default model to M2.7#1654octo-patch wants to merge 1 commit intoeyaltoledano:nextfrom
Conversation
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list - Set MiniMax-M2.7 as default model (first in list) - Keep all previous models as alternatives - Update model documentation and pricing - Add unit tests for M2.7 model configuration
🦋 Changeset detectedLatest commit: 62a1b92 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughThis pull request adds support for two new MiniMax models (M2.7 and M2.7-highspeed) across the codebase. Changes include a changelog entry, documentation updates for model pricing, model configuration entries with specifications, updated source code documentation, and corresponding test validation to ensure the new models are properly registered and available. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
docs/models.md (1)
126-127: This file is CI-generated and should not be manually edited.Based on learnings,
docs/models.mdis auto-generated by CI fromscripts/modules/supported-models.jsonvia the workflow.github/workflows/update-models-md.yml. Manual edits here may cause merge conflicts or be overwritten when CI regenerates this file.Since
scripts/modules/supported-models.jsonis correctly updated in this PR, consider removing the manual edits to this file and letting CI regenerate it. Based on learnings: "This repo's supported models list is CI-generated into docs/models.md from scripts/modules/supported-models.json... Don't request manual edits to the Markdown; ensure the JSON is correct instead."🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/models.md` around lines 126 - 127, The manual edits to docs/models.md should be removed because this file is CI-generated; revert the changes in docs/models.md (remove the added MiniMax lines) and ensure the canonical source scripts/modules/supported-models.json contains the new MiniMax entries, then let the workflow .github/workflows/update-models-md.yml regenerate docs/models.md during CI; target files/functions: docs/models.md (revert), scripts/modules/supported-models.json (verify/update).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@docs/models.md`:
- Around line 126-127: The manual edits to docs/models.md should be removed
because this file is CI-generated; revert the changes in docs/models.md (remove
the added MiniMax lines) and ensure the canonical source
scripts/modules/supported-models.json contains the new MiniMax entries, then let
the workflow .github/workflows/update-models-md.yml regenerate docs/models.md
during CI; target files/functions: docs/models.md (revert),
scripts/modules/supported-models.json (verify/update).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 18b1f87d-d8d7-4ce8-9246-50dd8004e0b4
📒 Files selected for processing (5)
.changeset/upgrade-minimax-m27.mddocs/models.mdscripts/modules/supported-models.jsonsrc/ai-providers/minimax.jstests/unit/ai-providers/minimax.test.js
Summary
Upgrade MiniMax model configuration to include the latest M2.7 model as default.
Changes
Why
MiniMax-M2.7 is the latest flagship model with enhanced reasoning and coding capabilities. It offers better performance at competitive pricing ($0.3/M input, $1.2/M output).
Testing
Note
Medium Risk
Changes MiniMax model selection defaults by placing
MiniMax-M2.7first in the supported model list, which can alter runtime model choice for MiniMax users. Otherwise it’s mostly catalog/documentation/test updates with limited code-path changes.Overview
Upgrades the MiniMax model catalog to include
MiniMax-M2.7andMiniMax-M2.7-highspeed, and makesMiniMax-M2.7the effective default by putting it first insupported-models.json(while keeping the existing M2.5 options).Updates
docs/models.mdwith the new MiniMax entries/pricing, adds a changeset for a minor release, and extendsminimaxprovider unit tests to assert the new models exist and are ordered first.Written by Cursor Bugbot for commit 62a1b92. This will update automatically on new commits. Configure here.
Summary by CodeRabbit
New Features
Documentation
Tests