feat(models): add MiniMax model support#1302
Open
ximiximi423 wants to merge 2 commits intoagentscope-ai:mainfrom
Open
feat(models): add MiniMax model support#1302ximiximi423 wants to merge 2 commits intoagentscope-ai:mainfrom
ximiximi423 wants to merge 2 commits intoagentscope-ai:mainfrom
Conversation
Add support for MiniMax-M2.5 and MiniMax-M2.5-highspeed models using the OpenAI-compatible API with MiniMax-specific handling for <think> tag parsing, default base URL, and interleaved reasoning content. Components added: - MiniMaxChatModel: chat model class with streaming, tools, and structured output support - MiniMaxChatFormatter: single-agent message formatter - MiniMaxMultiAgentFormatter: multi-agent conversation formatter - Comprehensive unit tests (9 test cases) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
Add MiniMaxTTSModel using the MiniMax T2A v2 HTTP API with support for streaming and non-streaming synthesis, configurable voice settings, audio format options, and multiple model variants (speech-2.8-hd, etc.). Components added: - MiniMaxTTSModel: TTS model class using httpx for direct API calls - Hex-to-base64 audio conversion for API response parsing - Streaming support with newline-delimited JSON parsing - 8 comprehensive unit tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
Member
|
Thank you for the contribution! The MiniMax official documentation recommends using the Anthropic-compatible API, so I wonder if we could just use AnthropicChatModel and AnthropicFormatter instead? |
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
Chat Model Details
MiniMax-M2.5 Model Features
openaiSDK with MiniMax base URL<think>...</think>tags intoThinkingBlockobjectstoolsandtool_choiceBaseModelsupportUsage Example
TTS Model Details
MiniMax TTS Features
httpxUsage Example
Test plan