[PR #183] [CLOSED] feat: add MiniMax provider support #219

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

📋 Pull Request Information

Original PR: https://github.com/vxcontrol/pentagi/pull/183
Author: @ximiximi423
Created: 3/9/2026
Status: Closed

Base: feature/next_releaseHead: feature/add-minimax-provider


📝 Commits (1)

  • 6c05fb4 feat: add MiniMax provider support

📊 Changes

22 files changed (+698 additions, -4 deletions)

View changed files

📝 .env.example (+4 -0)
📝 backend/cmd/installer/wizard/controller/controller.go (+17 -0)
📝 backend/cmd/installer/wizard/locale/locale.go (+21 -0)
📝 backend/cmd/installer/wizard/models/llm_provider_form.go (+10 -2)
📝 backend/cmd/installer/wizard/models/llm_providers.go (+1 -0)
📝 backend/cmd/installer/wizard/models/types.go (+2 -0)
📝 backend/cmd/installer/wizard/registry/registry.go (+1 -0)
backend/migrations/sql/20260309_000000_add_minimax_provider.sql (+10 -0)
📝 backend/pkg/config/config.go (+4 -0)
📝 backend/pkg/database/models.go (+1 -0)
📝 backend/pkg/graph/generated.go (+167 -0)
📝 backend/pkg/graph/model/models_gen.go (+6 -1)
📝 backend/pkg/graph/schema.graphqls (+4 -0)
📝 backend/pkg/graph/schema.resolvers.go (+8 -0)
backend/pkg/providers/minimax/config.yml (+121 -0)
backend/pkg/providers/minimax/minimax.go (+167 -0)
backend/pkg/providers/minimax/minimax_test.go (+106 -0)
backend/pkg/providers/minimax/models.yml (+16 -0)
📝 backend/pkg/providers/provider/provider.go (+2 -0)
📝 backend/pkg/providers/providers.go (+26 -0)

...and 2 more files

📄 Description

Summary

Add MiniMax as a new LLM provider with OpenAI-compatible API integration.

Supported Models

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

Both models support 204,800 tokens context window.

Changes

  • Add MiniMax provider implementation using OpenAI-compatible client (pkg/providers/minimax/)
  • Add provider configuration files (config.yml, models.yml)
  • Add MINIMAX_API_KEY and MINIMAX_SERVER_URL environment variables
  • Update GraphQL schema with minimax provider type and resolvers
  • Add database migration to extend PROVIDER_TYPE enum
  • Update installer wizard (TUI) with MiniMax provider option
  • Add unit tests for MiniMax provider
  • Update docker-compose.yml and .env.example

API Documentation

Test Plan

  • Unit tests pass (go test ./pkg/providers/minimax/...)
  • go vet passes
  • Project builds successfully

🔄 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/183 **Author:** [@ximiximi423](https://github.com/ximiximi423) **Created:** 3/9/2026 **Status:** ❌ Closed **Base:** `feature/next_release` ← **Head:** `feature/add-minimax-provider` --- ### 📝 Commits (1) - [`6c05fb4`](https://github.com/vxcontrol/pentagi/commit/6c05fb473a767a9e9f33cc75880bbc4571136cc0) feat: add MiniMax provider support ### 📊 Changes **22 files changed** (+698 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+4 -0) 📝 `backend/cmd/installer/wizard/controller/controller.go` (+17 -0) 📝 `backend/cmd/installer/wizard/locale/locale.go` (+21 -0) 📝 `backend/cmd/installer/wizard/models/llm_provider_form.go` (+10 -2) 📝 `backend/cmd/installer/wizard/models/llm_providers.go` (+1 -0) 📝 `backend/cmd/installer/wizard/models/types.go` (+2 -0) 📝 `backend/cmd/installer/wizard/registry/registry.go` (+1 -0) ➕ `backend/migrations/sql/20260309_000000_add_minimax_provider.sql` (+10 -0) 📝 `backend/pkg/config/config.go` (+4 -0) 📝 `backend/pkg/database/models.go` (+1 -0) 📝 `backend/pkg/graph/generated.go` (+167 -0) 📝 `backend/pkg/graph/model/models_gen.go` (+6 -1) 📝 `backend/pkg/graph/schema.graphqls` (+4 -0) 📝 `backend/pkg/graph/schema.resolvers.go` (+8 -0) ➕ `backend/pkg/providers/minimax/config.yml` (+121 -0) ➕ `backend/pkg/providers/minimax/minimax.go` (+167 -0) ➕ `backend/pkg/providers/minimax/minimax_test.go` (+106 -0) ➕ `backend/pkg/providers/minimax/models.yml` (+16 -0) 📝 `backend/pkg/providers/provider/provider.go` (+2 -0) 📝 `backend/pkg/providers/providers.go` (+26 -0) _...and 2 more files_ </details> ### 📄 Description ## Summary Add MiniMax as a new LLM provider with OpenAI-compatible API integration. ## Supported Models - **MiniMax-M2.5** (default) - Peak Performance. Ultimate Value. Master the Complex. - **MiniMax-M2.5-highspeed** - Same performance, faster and more agile. Both models support **204,800 tokens** context window. ## Changes - Add MiniMax provider implementation using OpenAI-compatible client (`pkg/providers/minimax/`) - Add provider configuration files (`config.yml`, `models.yml`) - Add `MINIMAX_API_KEY` and `MINIMAX_SERVER_URL` environment variables - Update GraphQL schema with `minimax` provider type and resolvers - Add database migration to extend `PROVIDER_TYPE` enum - Update installer wizard (TUI) with MiniMax provider option - Add unit tests for MiniMax provider - Update `docker-compose.yml` and `.env.example` ## API Documentation - OpenAI-compatible: https://platform.minimax.io/docs/api-reference/text-openai-api - Anthropic-compatible: https://platform.minimax.io/docs/api-reference/text-anthropic-api ## Test Plan - [x] Unit tests pass (`go test ./pkg/providers/minimax/...`) - [x] `go vet` passes - [x] Project builds successfully --- <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:45 -04:00
yindo closed this issue 2026-06-06 22:09:45 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vxcontrol/pentagi#219