feat: upgrade MiniMax models from M2.1 to M2.7

Update MiniMax provider description and model references from the legacy
MiniMax-M2.1/M2.1-lightning to the latest MiniMax-M2.7/M2.7-highspeed
models. Also update Novita AI's MiniMax model reference from M2.5 to M2.7.

Changes:
- Update MiniMax provider description in minimax.go
- Update Novita provider MiniMax model reference in novita.go
- Update all i18n locale files (en-US, zh-CN, ko-KR, ru-RU)
- Add MiniMax provider validation tests
This commit is contained in:
PR Bot
2026-03-26 16:51:49 +08:00
committed by lyingbug
parent fd5278d62d
commit d0811898b0
7 changed files with 50 additions and 10 deletions
+2 -2
View File
@@ -2128,7 +2128,7 @@ export default {
},
minimax: {
label: 'MiniMax',
description: 'MiniMax-M2.1, MiniMax-M2.1-lightning, etc.',
description: 'MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, etc.',
},
mimo: {
label: 'MiMo',
@@ -2172,7 +2172,7 @@ export default {
},
novita: {
label: "Novita AI",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.5, qwen/qwen3-embedding-0.6b, etc.",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.7, qwen/qwen3-embedding-0.6b, etc.",
},
},
},
+2 -2
View File
@@ -1592,7 +1592,7 @@ export default {
},
minimax: {
label: "MiniMax",
description: "MiniMax-M2.1, MiniMax-M2.1-lightning 등",
description: "MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5 등",
},
mimo: {
label: "MiMo",
@@ -1636,7 +1636,7 @@ export default {
},
novita: {
label: "Novita AI",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.5, qwen/qwen3-embedding-0.6b 등",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.7, qwen/qwen3-embedding-0.6b 등",
},
},
},
+2 -2
View File
@@ -1430,7 +1430,7 @@ export default {
},
minimax: {
label: 'MiniMax',
description: 'MiniMax-M2.1, MiniMax-M2.1-lightning, etc.'
description: 'MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, etc.'
},
mimo: {
label: 'MiMo',
@@ -1474,7 +1474,7 @@ export default {
},
novita: {
label: "Novita AI",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.5, qwen/qwen3-embedding-0.6b, etc.",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.7, qwen/qwen3-embedding-0.6b, etc.",
},
}
},
+2 -2
View File
@@ -1581,7 +1581,7 @@ export default {
},
minimax: {
label: "MiniMax",
description: "MiniMax-M2.1, MiniMax-M2.1-lightning 等",
description: "MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5 等",
},
mimo: {
label: "小米 MiMo",
@@ -1625,7 +1625,7 @@ export default {
},
novita: {
label: "Novita AI",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.5, qwen/qwen3-embedding-0.6b 等",
description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.7, qwen/qwen3-embedding-0.6b 等",
},
},
},
+1 -1
View File
@@ -25,7 +25,7 @@ func (p *MiniMaxProvider) Info() ProviderInfo {
return ProviderInfo{
Name: ProviderMiniMax,
DisplayName: "MiniMax",
Description: "MiniMax-M2.1, MiniMax-M2.1-lightning, etc.",
Description: "MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5, etc.",
DefaultURLs: map[types.ModelType]string{
types.ModelTypeKnowledgeQA: MiniMaxCNBaseURL,
},
+1 -1
View File
@@ -23,7 +23,7 @@ func (p *NovitaProvider) Info() ProviderInfo {
return ProviderInfo{
Name: ProviderNovita,
DisplayName: "Novita AI",
Description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.5, qwen/qwen3-embedding-0.6b, etc.",
Description: "moonshotai/kimi-k2.5, zai-org/glm-5, minimax/minimax-m2.7, qwen/qwen3-embedding-0.6b, etc.",
DefaultURLs: map[types.ModelType]string{
types.ModelTypeKnowledgeQA: NovitaOpenAIBaseURL,
types.ModelTypeEmbedding: NovitaOpenAIBaseURL,
+40
View File
@@ -128,6 +128,46 @@ func TestAliyunModelDetection(t *testing.T) {
})
}
func TestMiniMaxProviderValidation(t *testing.T) {
p := &MiniMaxProvider{}
t.Run("valid config", func(t *testing.T) {
config := &Config{
APIKey: "test-key",
ModelName: "MiniMax-M2.7",
}
err := p.ValidateConfig(config)
assert.NoError(t, err)
})
t.Run("missing API key", func(t *testing.T) {
config := &Config{
ModelName: "MiniMax-M2.7",
}
err := p.ValidateConfig(config)
assert.Error(t, err)
assert.Contains(t, err.Error(), "API key")
})
t.Run("missing model name", func(t *testing.T) {
config := &Config{
APIKey: "test-key",
}
err := p.ValidateConfig(config)
assert.Error(t, err)
assert.Contains(t, err.Error(), "model name")
})
t.Run("info", func(t *testing.T) {
info := p.Info()
assert.Equal(t, ProviderMiniMax, info.Name)
assert.Equal(t, "MiniMax", info.DisplayName)
assert.Contains(t, info.ModelTypes, types.ModelTypeKnowledgeQA)
assert.True(t, info.RequiresAuth)
assert.Contains(t, info.Description, "M2.7")
})
}
func TestZhipuProviderValidation(t *testing.T) {
p := &ZhipuProvider{}