Add MiniMax as built-in LLM provider#447
Open
octo-patch wants to merge 1 commit into
Open
Conversation
e246a35 to
d4f7d39
Compare
MiniMax provides OpenAI-compatible API endpoints, so models are registered using the standard openai SDK with a custom base_url. No extra dependencies. Models: MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, MiniMax-M2.5-highspeed. Auto-registers when MINIMAX_API_KEY env var is set, or via register(api_key=...). Changes: - src/ell/models/minimax.py: Model registration module - src/ell/models/__init__.py: Import minimax module - tests/test_minimax_provider.py: 16 unit + 3 integration tests - examples/providers/minimax_ex.py: Usage example - docs: Add MiniMax to supported providers list
d4f7d39 to
bd30e6a
Compare
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 built-in LLM provider. MiniMax offers OpenAI-compatible API endpoints, so this integration leverages the existing
openaiSDK with a custombase_url— no extra dependencies needed.Models registered
MiniMax-M2.7MiniMax-M2.7-highspeedMiniMax-M2.5MiniMax-M2.5-highspeedUsage
Changes (5 files, +478 lines)
src/ell/models/minimax.py— Model registration with auto-detection viaMINIMAX_API_KEYsrc/ell/models/__init__.py— Import minimax moduletests/test_minimax_provider.py— 16 unit tests + 3 integration testsexamples/providers/minimax_ex.py— Usage exampledocs/src/core_concepts/models_and_api_clients.rst— Add MiniMax to provider listTest plan
Design notes
xai.py— OpenAI client with custombase_urlMINIMAX_API_KEYis not set