Skip to content

Commit 53ac137

Browse files
octo-patchxuwei-fit2cloud
authored andcommitted
feat(models): prefer MiniMax M3.1 Flash in supplier picker
1 parent fc378c3 commit 53ac137

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎backend/tests/test_supplier_config.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import json
1010
import os
11+
import re
1112
import unittest
1213

1314
# Project root relative to this test file
@@ -66,9 +67,14 @@ def test_minimax_temperature_range(self):
6667
self.assertIn("range: '[0, 1]'", minimax_section)
6768

6869
def test_minimax_model_options(self):
69-
"""MiniMax should have M3 and M2.7 models."""
70-
self.assertIn("name: 'MiniMax-M3'", self.supplier_content)
71-
self.assertIn("name: 'MiniMax-M2.7'", self.supplier_content)
70+
"""Offer only current MiniMax models, with Flash first in the picker."""
71+
minimax_section = self.supplier_content.split("id: 13,", 1)[1]
72+
minimax_section = minimax_section.split("/* {", 1)[0]
73+
model_options = minimax_section.split("model_options:", 1)[1]
74+
self.assertEqual(
75+
re.findall(r"name: '([^']+)'", model_options),
76+
["MiniMax-M3.1-Flash", "MiniMax-M3"],
77+
)
7278

7379
def test_minimax_has_model_config_type_0(self):
7480
"""MiniMax should have model_config with type 0 (LLM)."""

‎frontend/src/entity/supplier.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export const supplierList: Array<{
290290
0: {
291291
api_domain: 'https://api.minimax.io/v1',
292292
common_args: [{ key: 'temperature', val: 0.7, type: 'number', range: '[0, 1]' }],
293-
model_options: [{ name: 'MiniMax-M3' }, { name: 'MiniMax-M2.7' }],
293+
model_options: [{ name: 'MiniMax-M3.1-Flash' }, { name: 'MiniMax-M3' }],
294294
},
295295
},
296296
},

0 commit comments

Comments
 (0)