feat: add MiniMax as native provider#26
Merged
jamiepine merged 1 commit intospacedriveapp:mainfrom Feb 20, 2026
Merged
Conversation
3 tasks
Contributor
|
hey, any ETA on this getting merged? |
Contributor
Author
This relies on #24 being merged first (this part is trivial on top of it) So as soon as there's any movement on that, this probably goes in soon after. But it's out of my hands for the moment. |
Collaborator
|
I am using this PR with some of my own (unrelated to this topic) fixes, so LGTM. Though it needs a rebase. |
Add MiniMax as a new LLM provider with full ProviderConfig integration: legacy key auto-mapping, API routing (Anthropic-compatible via api.minimax.io), routing defaults (MiniMax-M1-80k), and onboarding flow. MiniMax exposes an Anthropic messages endpoint, so it dispatches through the Anthropic API path rather than the OpenAI-compatible path used by most other providers. Frontend gains a MiniMax entry in the provider list with brand icon from lobehub.
9e8b81d to
d8586cd
Compare
rktmeister
pushed a commit
to rktmeister/spacebot
that referenced
this pull request
Mar 11, 2026
…r-clean feat: add MiniMax as native provider
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.
Depends on #24 — this PR includes those commits and adds the MiniMax provider on top.
Motivation
MiniMax offers competitive models (MiniMax M2.5) with both OpenAI-compatible and Anthropic-compatible API formats. MiniMax has the most variation of any provider we support:
api.minimax.io) vs China mainland (api.minimaxi.com)/v1) vs Anthropic-compatible (/anthropic)sk-cp-prefix, separate key, subscription billing)This is a good stress test of the
base_urlinfrastructure from #24 — it handles all three dimensions cleanly. Users select their endpoint preset (or enter a custom URL) and provide their key. No code changes needed for any combination.Thanks to @ZerGo0 whose research in #13 identified MiniMax's coding plan endpoint structure.
Changes
minimax_key/MINIMAX_API_KEYconfig and env varcall_anthropic_compatible(Anthropic message format)api.minimax.io/v1/chat/completionsminimax/model prefixBreaking Changes
None. New provider — no existing behavior affected.
How to Test
Verified
Tested with a MiniMax Coding Plan subscription (
sk-cp-key) against the Anthropic-compatible endpoint (api.minimax.io/anthropic). Chat completions return successfully. Using the Coding Plan key against the standard pay-per-token endpoint returns the expected error — confirming thesk-cp-key is scoped to the Coding Plan surface. Endpoint preset selector in the web UI correctly offers International, China, Anthropic, and Coding Plan options.Diff stats