Commit e3e9e72
authored
feat: upgrade MiniMax provider with M2.7 models as default (#1928)
## Summary
- Add **MiniMax-M2.7** and **MiniMax-M2.7-highspeed** as the newest
model options, positioned as the default (first) models in the MiniMax
provider dropdown
- Retain existing M2.5 and Text-01 models for backward compatibility
- Update unit and integration tests to verify M2.7 model availability
## Changes
| File | Change |
|------|--------|
| `data.json` | Add M2.7/M2.7-highspeed models, reorder so M2.7 is
default |
| `test_minimax_provider.py` | Add M2.7 model tests, update model count
assertions |
## Why M2.7?
MiniMax-M2.7 is the latest generation model from MiniMax, offering
improved reasoning and generation quality over M2.5. The highspeed
variant provides faster inference for latency-sensitive workloads. Both
models use the same OpenAI-compatible API endpoint
(`https://api.minimax.io/v1`).
## Test plan
- [x] All 35 unit tests pass
- [x] M2.7 and M2.7-highspeed API calls verified
- [ ] Integration tests pass with MINIMAX_API_KEY set5 files changed
Lines changed: 495 additions & 22 deletions
File tree
- src
- backend
- bisheng
- core/ai
- llm/domain/llm
- test
- frontend/platform
- public/models
- src/pages/ModelPage/manage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 113 | | |
127 | 114 | | |
128 | 115 | | |
| |||
166 | 153 | | |
167 | 154 | | |
168 | 155 | | |
169 | | - | |
| 156 | + | |
170 | 157 | | |
171 | 158 | | |
172 | 159 | | |
| |||
0 commit comments