[PR #5203] [CLOSED] feat: add MiniMax LLM provider support #5349

Closed
opened 2026-06-05 15:21:03 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5203
Author: @octo-patch
Created: 3/13/2026
Status: Closed

Base: masterHead: feature/add-minimax-provider


📝 Commits (1)

  • 1bd539c feat: add MiniMax LLM provider support

📊 Changes

18 files changed (+502 additions, -0 deletions)

View changed files

frontend/src/components/LLMSelection/MiniMaxOptions/index.jsx (+115 -0)
📝 frontend/src/components/ProviderPrivacy/constants.js (+6 -0)
frontend/src/media/llmprovider/minimax.png (+0 -0)
📝 frontend/src/pages/GeneralSettings/LLMPreference/index.jsx (+10 -0)
📝 frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx (+9 -0)
📝 frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx (+1 -0)
📝 server/.env.example (+4 -0)
📝 server/endpoints/utils.js (+3 -0)
📝 server/models/systemSettings.js (+4 -0)
server/utils/AiProviders/minimax/index.js (+178 -0)
📝 server/utils/agents/aibitat/index.js (+2 -0)
📝 server/utils/agents/aibitat/providers/ai-provider.js (+8 -0)
📝 server/utils/agents/aibitat/providers/index.js (+2 -0)
server/utils/agents/aibitat/providers/minimax.js (+87 -0)
📝 server/utils/agents/index.js (+6 -0)
📝 server/utils/helpers/customModels.js (+49 -0)
📝 server/utils/helpers/index.js (+8 -0)
📝 server/utils/helpers/updateENV.js (+10 -0)

📄 Description

Summary

Add MiniMax as a new LLM provider, enabling users to leverage MiniMax's powerful models through AnythingLLM.

  • MiniMax-M2.5 — Peak Performance. Ultimate Value. Master the Complex.
  • MiniMax-M2.5-highspeed — Same performance, faster and more agile.

Both models support a 204,800-token context window and use an OpenAI-compatible API.

Changes

Backend

  • New provider: server/utils/AiProviders/minimax/index.js — MiniMaxLLM class using OpenAI-compatible SDK
  • Agent support: server/utils/agents/aibitat/providers/minimax.js — MiniMax agent provider for AI agent workflows
  • Provider registration: Updated helpers/index.js (getLLMProvider, getLLMProviderClass, getBaseLLMProviderModel)
  • Custom models: Updated helpers/customModels.js with static model list (MiniMax doesn't expose a /models endpoint)
  • Settings: Updated updateENV.js, systemSettings.js, endpoints/utils.js
  • Agent config: Updated agents/index.js, aibitat/index.js, aibitat/providers/index.js, aibitat/providers/ai-provider.js
  • Environment: Added MINIMAX_API_KEY and MINIMAX_MODEL_PREF to .env.example

Frontend

  • Options component: MiniMaxOptions/index.jsx — API key input + model selector
  • Provider listing: Added to General Settings, Onboarding Flow, and Agent Config
  • Privacy policy: Added MiniMax entry to ProviderPrivacy constants
  • Logo: Added MiniMax provider logo

API Details

Item Value
Base URL https://api.minimax.io/v1
Auth Authorization: Bearer <MINIMAX_API_KEY>
Temperature Must be in (0.0, 1.0] — zero is automatically adjusted to 0.01
Context Window 204,800 tokens

API Documentation

Testing

  • Verified provider class instantiation with correct defaults
  • Verified chat completion with MiniMax-M2.5 model via OpenAI SDK
  • Verified streaming response handling
  • Verified prompt construction and message formatting

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5203 **Author:** [@octo-patch](https://github.com/octo-patch) **Created:** 3/13/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/add-minimax-provider` --- ### 📝 Commits (1) - [`1bd539c`](https://github.com/Mintplex-Labs/anything-llm/commit/1bd539c029f67d936cedfb3486b0c2b1837b39b7) feat: add MiniMax LLM provider support ### 📊 Changes **18 files changed** (+502 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/LLMSelection/MiniMaxOptions/index.jsx` (+115 -0) 📝 `frontend/src/components/ProviderPrivacy/constants.js` (+6 -0) ➕ `frontend/src/media/llmprovider/minimax.png` (+0 -0) 📝 `frontend/src/pages/GeneralSettings/LLMPreference/index.jsx` (+10 -0) 📝 `frontend/src/pages/OnboardingFlow/Steps/LLMPreference/index.jsx` (+9 -0) 📝 `frontend/src/pages/WorkspaceSettings/AgentConfig/AgentLLMSelection/index.jsx` (+1 -0) 📝 `server/.env.example` (+4 -0) 📝 `server/endpoints/utils.js` (+3 -0) 📝 `server/models/systemSettings.js` (+4 -0) ➕ `server/utils/AiProviders/minimax/index.js` (+178 -0) 📝 `server/utils/agents/aibitat/index.js` (+2 -0) 📝 `server/utils/agents/aibitat/providers/ai-provider.js` (+8 -0) 📝 `server/utils/agents/aibitat/providers/index.js` (+2 -0) ➕ `server/utils/agents/aibitat/providers/minimax.js` (+87 -0) 📝 `server/utils/agents/index.js` (+6 -0) 📝 `server/utils/helpers/customModels.js` (+49 -0) 📝 `server/utils/helpers/index.js` (+8 -0) 📝 `server/utils/helpers/updateENV.js` (+10 -0) </details> ### 📄 Description ## Summary Add [MiniMax](https://platform.minimax.io) as a new LLM provider, enabling users to leverage MiniMax's powerful models through AnythingLLM. - **MiniMax-M2.5** — Peak Performance. Ultimate Value. Master the Complex. - **MiniMax-M2.5-highspeed** — Same performance, faster and more agile. Both models support a 204,800-token context window and use an OpenAI-compatible API. ## Changes ### Backend - **New provider**: `server/utils/AiProviders/minimax/index.js` — MiniMaxLLM class using OpenAI-compatible SDK - **Agent support**: `server/utils/agents/aibitat/providers/minimax.js` — MiniMax agent provider for AI agent workflows - **Provider registration**: Updated `helpers/index.js` (getLLMProvider, getLLMProviderClass, getBaseLLMProviderModel) - **Custom models**: Updated `helpers/customModels.js` with static model list (MiniMax doesn't expose a `/models` endpoint) - **Settings**: Updated `updateENV.js`, `systemSettings.js`, `endpoints/utils.js` - **Agent config**: Updated `agents/index.js`, `aibitat/index.js`, `aibitat/providers/index.js`, `aibitat/providers/ai-provider.js` - **Environment**: Added `MINIMAX_API_KEY` and `MINIMAX_MODEL_PREF` to `.env.example` ### Frontend - **Options component**: `MiniMaxOptions/index.jsx` — API key input + model selector - **Provider listing**: Added to General Settings, Onboarding Flow, and Agent Config - **Privacy policy**: Added MiniMax entry to ProviderPrivacy constants - **Logo**: Added MiniMax provider logo ## API Details | Item | Value | |------|-------| | Base URL | `https://api.minimax.io/v1` | | Auth | `Authorization: Bearer <MINIMAX_API_KEY>` | | Temperature | Must be in `(0.0, 1.0]` — zero is automatically adjusted to `0.01` | | Context Window | 204,800 tokens | ## API Documentation - [OpenAI Compatible API](https://platform.minimax.io/docs/api-reference/text-openai-api) ## Testing - Verified provider class instantiation with correct defaults - Verified chat completion with MiniMax-M2.5 model via OpenAI SDK - Verified streaming response handling - Verified prompt construction and message formatting --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:03 -04:00
yindo closed this issue 2026-06-05 15:21:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5349