Add MiniMax as LLM provider backend#501
Open
octo-patch wants to merge 1 commit intoexplosion:mainfrom
Open
Conversation
Add MiniMax as a first-class REST LLM provider alongside OpenAI, Anthropic, Cohere, and PaLM. MiniMax uses an OpenAI-compatible chat completions API with support for M2.5, M2.5-highspeed, M2.7, and M2.7-highspeed models. - New `spacy_llm/models/rest/minimax/` provider module (model, registry, init) - Registry entry `spacy.MiniMax.v1` for spaCy config integration - Think-tag stripping for reasoning model output - Temperature clamping and context length definitions - Test suite with unit and integration tests - Usage example config for text classification with MiniMax - README updated to list MiniMax as supported 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.
Summary
Adds MiniMax as a first-class REST LLM provider backend for spacy-llm, alongside OpenAI, Anthropic, Cohere, and PaLM.
MiniMax offers an OpenAI-compatible chat completions API with models like MiniMax-M2.5 (204K context) and MiniMax-M2.7 (1M context), making it a compelling alternative for structured NLP pipelines.
Changes
spacy_llm/models/rest/minimax/with model, registry, and init filesspacy.MiniMax.v1for seamless spaCy config integrationUsage
Python
Config file
Supported Models
Test Plan
spacy.MiniMax.v1resolves correctly