feat: add MiniMax provider support#58
Open
octo-patch wants to merge 1 commit intorepowise-dev:mainfrom
Open
Conversation
- Add MiniMax chat model provider using Anthropic-compatible API - Add MINIMAX_API_KEY environment variable support - Register MiniMax in provider registry, rate limiter, and server catalog - Add models: MiniMax-M2.7 (default) and MiniMax-M2.7-highspeed - Add unit tests and live integration tests
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
MiniMaxProviderusing MiniMax's Anthropic-compatible API (https://api.minimax.io/anthropic)MiniMax-M2.7(default) andMiniMax-M2.7-highspeedMINIMAX_API_KEYenvironment variable support (also respectsMINIMAX_BASE_URLoverride)(0.0, 1.0]as required by the MiniMax APIThinkingBlockin responses by extracting the firsttexttype content blockAPI Reference
Test plan
uv run pytest tests/providers/test_minimax_provider.py tests/providers/test_registry.py -v— 34 passedMINIMAX_API_KEY=... uv run pytest tests/integration/test_provider_live.py -k minimax -v— 2 passed