feat: add MiniMax-M2-Stable model and enable prompt caching #9072
+53
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #9070
Roo Code Task Context (Optional)
N/A - This PR was created by an automated workflow.
Description
This PR addresses the enhancement request to add the new MiniMax-M2-Stable model option and enable prompt caching support for MiniMax provider models.
Key implementation details:
Test Procedure
Automated Tests:
Manual Verification:
All automated tests are passing (19 tests).
Pre-Submission Checklist
Screenshots / Videos
N/A - This is a backend change for model configuration.
Documentation Updates
The changes are self-documenting through the model configuration and descriptions.
Additional Notes
This implementation follows the pricing and specifications provided in the MiniMax official documentation:
Feedback and guidance are welcome!
Get in Touch
N/A - Automated workflow
Important
Add
MiniMax-M2-Stablemodel and enable prompt caching for MiniMax models with updated tests.MiniMax-M2-Stablemodel tominimax.tswith specs identical toMiniMax-M2.MiniMax-M2andMiniMax-M2-Stablewith specific cache pricing.minimax.spec.tsto verifyMiniMax-M2-Stableconfiguration and prompt caching.This description was created by
for 7a93d2d. You can customize this summary. It will automatically update as commits are pushed.