mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-16 15:43:13 +08:00
把 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
22 lines
317 B
Go
22 lines
317 B
Go
package model
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestAllPlatformsIncludesEveryConcretePlatform(t *testing.T) {
|
|
require.ElementsMatch(t, []string{
|
|
"anthropic",
|
|
"openai",
|
|
"gemini",
|
|
"antigravity",
|
|
"grok",
|
|
"kimi",
|
|
"zhipu",
|
|
"deepseek",
|
|
"minimax",
|
|
}, AllPlatforms())
|
|
}
|