mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #197] [CLOSED] feat: add MiniMax LLM provider support #227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/197
Author: @octo-patch
Created: 3/12/2026
Status: ❌ Closed
Base:
master← Head:feature/add-minimax-provider📝 Commits (2)
ee93131feat: add MiniMax LLM provider support95d7a85feat: 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 reasoningMiniMax-M2.5-highspeed— Optimized version with faster inference, same 204K contextChanges
New files
backend/pkg/providers/minimax/minimax.go— Provider implementation using langchaingo OpenAI clientbackend/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 pricingModified files
backend/pkg/providers/provider/provider.go— AddProviderMiniMaxtype constant andDefaultProviderNameMiniMaxbackend/pkg/config/config.go— AddMINIMAX_API_KEY,MINIMAX_SERVER_URL,MINIMAX_PROVIDERenvironment variable config fieldsbackend/pkg/providers/providers.go— Register MiniMax in provider factory (import, default config, instantiation, NewProvider switch case)Configuration
Set these environment variables to enable MiniMax:
Test Plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.