feat(minimax): 增加 MiniMax 平台支持

把 MiniMax 做成与 Kimi / 智谱 / DeepSeek 同级的国产供应商平台:账号创建/编辑、分组、Composite 路由、原生 Token Plan / Coding Plan 额度,以及 OpenAI 兼容模型列表。

额度走 GET api.minimaxi.com|io /v1/api/openplatform/coding_plan/remains(Bearer)。只解析 model_name=general 的 remaining percent;周窗口仅在 current_weekly_status=1 时计入。

Related to #6742
This commit is contained in:
刘佳林
2026-09-07 18:22:56 +08:00
parent 909b8c7ef4
commit 19382f275e
101 changed files with 704 additions and 151 deletions
+8
View File
@@ -14,6 +14,10 @@ Composite groups can route to these concrete account platforms:
- OpenAI
- Antigravity
- Grok
- Kimi
- Zhipu GLM
- DeepSeek
- MiniMax
The selected concrete platform is used for account selection, user platform
quota checks, post-usage billing, ops error platform attribution, channel
@@ -68,6 +72,10 @@ Composite routing detects common public model IDs and provider-prefixed IDs:
- `gpt-*`, `o*`, `codex-*`, `text-embedding-*`, `dall-e-*`, and
`openai/*` route to OpenAI.
- `grok-*` and `xai/grok-*` route to Grok.
- `kimi-*`, `moonshot-*`, and `k3` route to Kimi.
- `glm-*` routes to Zhipu GLM.
- `deepseek-*` routes to DeepSeek.
- `minimax-*`, `abab*`, and `minimax/*` route to MiniMax.
Unknown or ambiguous model names fail closed with a client error instead of
guessing a provider.