feat(model_apis): add MiniMax Cloud API as text generation provider#339
Open
octo-patch wants to merge 1 commit intostochasticai:mainfrom
Open
feat(model_apis): add MiniMax Cloud API as text generation provider#339octo-patch wants to merge 1 commit intostochasticai:mainfrom
octo-patch wants to merge 1 commit intostochasticai:mainfrom
Conversation
Add MiniMax as a 4th cloud text-generation API alongside OpenAI, Cohere, and Claude. Uses the OpenAI-compatible endpoint at api.minimax.io/v1, with temperature clamping (MiniMax requires >0), retry logic, and convenience wrappers for MiniMax-M2.7 and MiniMax-M2.7-highspeed. - src/xturing/model_apis/minimax.py: MiniMaxTextGenerationAPI + presets - src/xturing/model_apis/__init__.py: register minimax/m2_7/m2_7_highspeed - tests/xturing/model_apis/test_minimax_api.py: 18 unit + 3 integration tests - README.md: Cloud API table and usage example
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 the 4th cloud text-generation API provider (alongside OpenAI, Cohere, and Claude).
xTuring already has excellent MiniMax M2 local fine-tuning support (PR #307) — this PR complements it by adding cloud API access to MiniMax latest models (M2.7 / M2.7-highspeed) for self-instruct data generation and text generation workflows.
Changes
Usage
Test plan