Add MiniMax as first-class LLM provider#45
Open
octo-patch wants to merge 1 commit intodatadreamer-dev:mainfrom
Open
Add MiniMax as first-class LLM provider#45octo-patch wants to merge 1 commit intodatadreamer-dev:mainfrom
octo-patch wants to merge 1 commit intodatadreamer-dev:mainfrom
Conversation
Add MiniMax as a new LLM provider that extends the existing OpenAI class, leveraging MiniMax's OpenAI-compatible API endpoint. This enables users to use MiniMax's M2.7 and M2.5 model families for prompting and synthetic data generation workflows. Key changes: - New MiniMax class in src/llms/minimax.py extending OpenAI - Temperature clamping to MiniMax's (0.0, 1.0] range - Model-specific context lengths (1M for M2.7, 204K for M2.5) - Model-specific max output lengths (16K for M2.7, 8K for M2.5) - MINIMAX_API_KEY environment variable support - 30 unit tests + 3 integration tests in tests/test_minimax.py - In-project test class in src/tests/llms/test_llms.py - Registered in src/llms/__init__.py exports Supported models: - MiniMax-M2.7 (1M context) - MiniMax-M2.7-highspeed (1M context) - MiniMax-M2.5 (204K context) - MiniMax-M2.5-highspeed (204K context)
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA PR Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
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
Add MiniMax as a first-class LLM provider in DataDreamer, extending the existing
OpenAIclass to leverage MiniMax's OpenAI-compatible API endpoint (https://api.minimax.io/v1).Key Changes
MiniMaxclass (src/llms/minimax.py): ExtendsOpenAIwith MiniMax-specific configurations(0.0, 1.0]rangeMINIMAX_API_KEYenvironment variable auto-detectionsrc/llms/__init__.py: Registered MiniMax in exports and__all__tests/test_minimax.py): Module structure, constants, implementation logic, and live API testssrc/tests/llms/test_llms.py):TestMiniMaxclass following existing test patternsSupported Models
Usage
Test Plan
with DataDreamer(...))