mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-19 12:11:02 -04:00
[PR #328] feat: upgrade MiniMax default model to M3 #322
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/328
Author: @octo-patch
Created: 6/3/2026
Status: 🔄 Open
Base:
main← Head:feature/upgrade-minimax-m3📝 Commits (1)
9ca254efeat: upgrade MiniMax default model to M3📊 Changes
8 files changed (+609 additions, -1 deletions)
View changed files
📝
backend/pkg/config/config.go(+6 -0)➕
backend/pkg/providers/minimax/config.yml(+130 -0)➕
backend/pkg/providers/minimax/minimax.go(+194 -0)➕
backend/pkg/providers/minimax/minimax_test.go(+229 -0)➕
backend/pkg/providers/minimax/models.yml(+20 -0)📝
backend/pkg/providers/provider/provider.go(+2 -0)📝
backend/pkg/providers/providers.go(+26 -0)📝
backend/pkg/server/models/providers.go(+2 -1)📄 Description
Summary
Add MiniMax provider to PentAGI with MiniMax-M3 as the default model, keeping MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives.
Changes
MiniMaxprovider package (backend/pkg/providers/minimax/) implementing theprovider.Providerinterface via the OpenAI-compatiblehttps://api.minimax.io/v1endpoint.ProviderMiniMaxtype,DefaultProviderNameMiniMaxname, and wire the provider intoNewProviderController/NewProvider/buildProviderFromConfig/buildProviderFromConfig/GetProviderpaths.MINIMAX_API_KEY,MINIMAX_SERVER_URL(defaulthttps://api.minimax.io/v1),MINIMAX_PROVIDERand the matching secret pattern.provider.ProviderMiniMaxto theValid()whitelist inpkg/server/models/providers.go(required for REST API acceptance).M3first, no legacyM1/M2/M2.1/M2.5), model prefix behaviour, and missing-API-key error.Why
MiniMax-M3 is MiniMax's latest flagship model (512K context, 128K max output, image input support) and is the right default for a security-testing workload that benefits from large context and multimodal input. MiniMax-M2.7 and its high-speed variant are retained for users who want to pin to the previous generation.
Model list
MiniMax-M3(default) — 512K context, 128K output, image input, input $0.60 / output $2.40 per 1M tokensMiniMax-M2.7— input $0.40 / output $1.10MiniMax-M2.7-highspeed— input $0.40 / output $1.10No legacy models (
MiniMax-M1/MiniMax-M2/MiniMax-M2.1/MiniMax-M2.5) are included.API docs
Testing
go test ./pkg/providers/minimax/...— 7/7 passing (config loading, provider type, models list with M3 as first entry, prefix behaviour, missing key, usage extraction).go build ./pkg/providers/minimax/...— clean.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.