feat: upgrade MiniMax to M2.7 models with OpenAI-compatible API#65
Open
octo-patch wants to merge 1 commit into53AI:mainfrom
Open
feat: upgrade MiniMax to M2.7 models with OpenAI-compatible API#65octo-patch wants to merge 1 commit into53AI:mainfrom
octo-patch wants to merge 1 commit into53AI:mainfrom
Conversation
- Update MiniMax model list: add MiniMax-M2.7 and MiniMax-M2.7-highspeed alongside legacy abab* models for backward compatibility - Switch MiniMax URL routing from deprecated /v1/text/chatcompletion_v2 to standard OpenAI-compatible /v1/chat/completions endpoint - Remove unused minimax adaptor import from adaptor.go - Add unit tests for model list, channel meta, and URL routing (6 tests) - Add integration tests for MiniMax M2.7 API (chat + streaming) The upstream one-api v0.6.10 dependency only includes the legacy abab* models which use MiniMax's old proprietary API format. MiniMax now offers a standard OpenAI-compatible API at api.minimax.io/v1 with the M2.7 series models. Users should configure their MiniMax channel base URL as https://api.minimax.io (or https://api.minimaxi.com for China).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Upgrade MiniMax integration from legacy abab* models to the latest M2.7 series with proper OpenAI-compatible API support.
Problem
The current MiniMax integration (via upstream one-api v0.6.10) uses:
/v1/text/chatcompletion_v2(MiniMax proprietary format)MiniMax has since released the M2.7 model family and a standard OpenAI-compatible API at
api.minimax.io/v1.Changes
MiniMax-M2.7andMiniMax-M2.7-highspeed(204K context, competitive pricing at /bin/bash.3-0.6/M input tokens) while keeping legacy abab* models for backward compatibility/v1/text/chatcompletion_v2to standard/v1/chat/completionsendpointMigration for existing users
Users with MiniMax channels should update their Base URL to:
https://api.minimax.iohttps://api.minimaxi.comMiniMax M2.7 Highlights
Test Plan
API Documentation