feat: add MiniMax as a new LLM provider with M2.7 default (#11367)
* feat: add MiniMax as a new LLM provider Add MiniMax (https://platform.minimax.io) as a new LLM provider with OpenAI-compatible API support. Changes: - Add MiniMax LLM provider class extending OpenAI with temperature clamping (must be in (0, 1]) and response_format removal - Register provider in LLMClasses, openai-adapters, and config-types - Add model info for MiniMax-M2.5 and MiniMax-M2.5-highspeed (204K context, 192K max output) - Add GUI model selection entries and provider configuration - Add provider documentation page * fix: use dedicated MiniMaxApi adapter instead of generic OpenAIApi The minimax provider was wired to the generic OpenAIApi via openAICompatible(), which skips MiniMax-specific request fixes. This creates a dedicated MiniMaxApi adapter class that overrides modifyChatBody to apply temperature clamping (MiniMax requires temperature in (0.0, 1.0]) and response_format removal, matching the adaptations already present in core/llm/llms/MiniMax.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: upgrade MiniMax default model to M2.7 - Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list - Set MiniMax-M2.7 as default model - Keep all previous models (M2.5, M2.5-highspeed) as alternatives - Update docs and GUI model selection * fix: add minimax to PROVIDER_HANDLES_TEMPLATING and PARALLEL_PROVIDERS MiniMax uses an OpenAI-compatible chat completions API, so it handles templating natively. MiniMax also supports parallel tool calls. Not added to PROVIDER_SUPPORTS_IMAGES since MiniMax M2.7 is text-only. * style: fix prettier formatting in MiniMax provider files --------- Co-authored-by: PR Bot <pr-bot@minimaxi.com> Co-authored-by: octo-patch <octo-patch@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Dallin Romney <dallinromney@gmail.com>
O
Octopus committed
4714bae00a73991be6e631e6061b8754112f6d58
Parent: 92c4d19
Committed by GitHub <noreply@github.com>
on 3/24/2026, 8:06:19 PM