Add MiniMax as a first-class LLM provider#7027
Add MiniMax as a first-class LLM provider#7027octo-patch wants to merge 1 commit intotensorzero:mainfrom
Conversation
Add native MiniMax provider support with OpenAI-compatible API integration, including chat completions (streaming and non-streaming), tool use, and JSON mode. Supports MiniMax-M2.7 and other MiniMax models via MINIMAX_API_KEY. - Provider implementation with credentials, request/response types - Configuration, shorthand model names (minimax::model_name) - Documentation: provider guide, configuration reference, API docs - Unit tests for request building, response parsing, credentials
|
I have read the Contributor License Agreement (CLA) and hereby sign the CLA. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
Hi @octo-patch - thank you for the PR. I believe you can already use this API via our OpenAI-compatible provider: https://www.tensorzero.com/docs/gateway/api-reference/inference-openai-compatible Do we need a custom provider for it? |
|
Thanks for the pointer, @GabrielBianconi! You're right — since MiniMax provides a fully OpenAI-compatible API at |
Summary
Adds MiniMax as a first-class LLM provider in TensorZero, alongside existing providers like OpenAI, Anthropic, DeepSeek, etc.
MiniMax offers an OpenAI-compatible chat completions API with models like MiniMax-M2.7 (1M context window). This PR adds native provider support so users can configure MiniMax models directly:
Changes
Rust Implementation (7 files, ~1100 additions)
crates/tensorzero-types-providers/src/minimax.rs: Serde types for MiniMax API responses (reuses OpenAI-compatible types)crates/tensorzero-core/src/providers/minimax.rs: Full provider implementation:MiniMaxCredentialswith Static/Dynamic/WithFallback/None variantsMiniMaxProviderimplementingInferenceProvidertraithandle_openai_errormodel.rs:ProviderConfig::MiniMaxvariant in all match arms (infer, infer_stream, batch, thought_block, supports_provider_tools, shorthand)model_table.rs:ProviderType::MiniMax,MiniMaxKindwithProviderKindimpl, default credentialsconfig/provider_types.rs:MiniMaxProviderTypeConfigwithMINIMAX_API_KEYenv defaultproviders/mod.rsandtypes-providers/src/lib.rs: Module declarationsDocumentation (10 files, ~260 additions)
docs/integrations/model-providers/minimax.mdx- Getting started guide with simple and advanced setupFeatures
Test Plan
MINIMAX_API_KEY)