feat(minimax): add MiniMax provider plugin - #78
Open
octo-patch wants to merge 2 commits into
Open
Conversation
Add a first-class MiniMax provider plugin following the existing provider plugin pattern (config, HTTP adapter, routes, model mappings, model cards). - Static API-key (Bearer) authentication, no OAuth dependency - Region selection (global_en / cn_zh) that resolves the OpenAI and Anthropic base URLs - OpenAI-compatible /v1/chat/completions plus Anthropic-compatible /v1/messages via the core format chain, and /v1/models - Default model cards and aliases for MiniMax-M3 and MiniMax-M2.7 - Register the plugin entry point and add unit tests
Author
|
I updated the MiniMax default model cards with the target context windows, per-million-token pricing, input modalities, and thinking modes, and pushed commit |
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.
Reason: Add a first-class MiniMax provider plugin so the proxy can serve the MiniMax global and regional endpoints and the MiniMax-M3 and MiniMax-M2.7 models.
What
Adds a new provider plugin under
ccproxy/plugins/minimax/, mirroring theexisting provider plugin architecture (config subclass of
ProviderConfig,BaseHTTPAdaptersubclass, FastAPI routes, model mappings, and model cards).credential manager or detection service, so the plugin declares no auth
dependency.
regionoption (global_en/cn_zh) resolves the OpenAIand Anthropic base URLs and the docs root. Explicitly configured URLs are
preserved.
/minimax):POST /v1/chat/completions— OpenAI-compatible.POST /v1/messages— Anthropic-compatible, converted to the OpenAI chatprotocol through the core format chain.
GET /v1/models— configured model metadata.MiniMax-M3and
MiniMax-M2.7.minimaxentry point, adds aminimaxpytest marker, anddocuments a
[plugins.minimax]example inconfig.example.toml.Tests / checks
ruff format --check ccproxy/plugins/minimax tests/plugins/minimaxruff check ccproxy/plugins/minimax tests/plugins/minimaxpytest tests/plugins/minimax/unit(11 passed)