[PR #197] [CLOSED] feat: add MiniMax LLM provider support #227

Closed
opened 2026-06-06 22:09:47 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vxcontrol/pentagi/pull/197
Author: @octo-patch
Created: 3/12/2026
Status: Closed

Base: masterHead: feature/add-minimax-provider


📝 Commits (2)

  • ee93131 feat: add MiniMax LLM provider support
  • 95d7a85 feat: upgrade MiniMax default model to M2.7

📊 Changes

6 files changed (+364 additions, -0 deletions)

View changed files

📝 backend/pkg/config/config.go (+5 -0)
backend/pkg/providers/minimax/config.yml (+130 -0)
backend/pkg/providers/minimax/minimax.go (+178 -0)
backend/pkg/providers/minimax/models.yml (+27 -0)
📝 backend/pkg/providers/provider/provider.go (+2 -0)
📝 backend/pkg/providers/providers.go (+22 -0)

📄 Description

Summary

Add MiniMax as a new LLM provider, following the existing provider architecture pattern (similar to DeepSeek, Kimi, GLM, Qwen).

MiniMax offers an OpenAI-compatible API with high-performance models:

  • MiniMax-M2.5 — 204K context window, suitable for general dialogue, code generation, and complex reasoning
  • MiniMax-M2.5-highspeed — Optimized version with faster inference, same 204K context

Changes

New files

  • backend/pkg/providers/minimax/minimax.go — Provider implementation using langchaingo OpenAI client
  • backend/pkg/providers/minimax/config.yml — Model configurations for all option types (simple, primary_agent, assistant, generator, coder, etc.)
  • backend/pkg/providers/minimax/models.yml — Model definitions with descriptions and pricing

Modified files

  • backend/pkg/providers/provider/provider.go — Add ProviderMiniMax type constant and DefaultProviderNameMiniMax
  • backend/pkg/config/config.go — Add MINIMAX_API_KEY, MINIMAX_SERVER_URL, MINIMAX_PROVIDER environment variable config fields
  • backend/pkg/providers/providers.go — Register MiniMax in provider factory (import, default config, instantiation, NewProvider switch case)

Configuration

Set these environment variables to enable MiniMax:

MINIMAX_API_KEY=your_api_key_here
# Optional: override default server URL
MINIMAX_SERVER_URL=https://api.minimax.io/v1
# Optional: model prefix for Langfuse logging
MINIMAX_PROVIDER=

Test Plan

  • Verify Go build compiles without errors
  • Test provider instantiation with valid MiniMax API key
  • Verify model selection for different option types (simple, primary_agent, coder, etc.)
  • Test streaming and tool calling capabilities
  • Verify provider appears in the UI provider list when API key is configured

🔄 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/vxcontrol/pentagi/pull/197 **Author:** [@octo-patch](https://github.com/octo-patch) **Created:** 3/12/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/add-minimax-provider` --- ### 📝 Commits (2) - [`ee93131`](https://github.com/vxcontrol/pentagi/commit/ee93131c8bcfcfc351df9e6e571b8e64e7f1b9ca) feat: add MiniMax LLM provider support - [`95d7a85`](https://github.com/vxcontrol/pentagi/commit/95d7a857f7a22b9e1130062cea6a025e9b9661b6) feat: upgrade MiniMax default model to M2.7 ### 📊 Changes **6 files changed** (+364 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/pkg/config/config.go` (+5 -0) ➕ `backend/pkg/providers/minimax/config.yml` (+130 -0) ➕ `backend/pkg/providers/minimax/minimax.go` (+178 -0) ➕ `backend/pkg/providers/minimax/models.yml` (+27 -0) 📝 `backend/pkg/providers/provider/provider.go` (+2 -0) 📝 `backend/pkg/providers/providers.go` (+22 -0) </details> ### 📄 Description ## Summary Add MiniMax as a new LLM provider, following the existing provider architecture pattern (similar to DeepSeek, Kimi, GLM, Qwen). **MiniMax** offers an OpenAI-compatible API with high-performance models: - `MiniMax-M2.5` — 204K context window, suitable for general dialogue, code generation, and complex reasoning - `MiniMax-M2.5-highspeed` — Optimized version with faster inference, same 204K context ## Changes ### New files - `backend/pkg/providers/minimax/minimax.go` — Provider implementation using langchaingo OpenAI client - `backend/pkg/providers/minimax/config.yml` — Model configurations for all option types (simple, primary_agent, assistant, generator, coder, etc.) - `backend/pkg/providers/minimax/models.yml` — Model definitions with descriptions and pricing ### Modified files - `backend/pkg/providers/provider/provider.go` — Add `ProviderMiniMax` type constant and `DefaultProviderNameMiniMax` - `backend/pkg/config/config.go` — Add `MINIMAX_API_KEY`, `MINIMAX_SERVER_URL`, `MINIMAX_PROVIDER` environment variable config fields - `backend/pkg/providers/providers.go` — Register MiniMax in provider factory (import, default config, instantiation, NewProvider switch case) ## Configuration Set these environment variables to enable MiniMax: ```env MINIMAX_API_KEY=your_api_key_here # Optional: override default server URL MINIMAX_SERVER_URL=https://api.minimax.io/v1 # Optional: model prefix for Langfuse logging MINIMAX_PROVIDER= ``` ## Test Plan - [ ] Verify Go build compiles without errors - [ ] Test provider instantiation with valid MiniMax API key - [ ] Verify model selection for different option types (simple, primary_agent, coder, etc.) - [ ] Test streaming and tool calling capabilities - [ ] Verify provider appears in the UI provider list when API key is configured --- <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-06 22:09:47 -04:00
yindo closed this issue 2026-06-06 22:09:47 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vxcontrol/pentagi#227