feat: upgrade MiniMax default model to M2.7
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list - Set MiniMax-M2.7 as default model - Keep all previous models as alternatives - Update related tests
This commit is contained in:
parent
1b9c5609c9
commit
d681cfc317
|
|
@ -6,11 +6,11 @@ LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
|||
LLM_MODEL_NAME=qwen-plus
|
||||
|
||||
# ===== 使用 MiniMax 模型(可选)=====
|
||||
# MiniMax M2.5: 高性能、高性价比,支持 204,800 tokens 上下文
|
||||
# MiniMax M2.7: 最新旗舰模型,增强推理与编码能力
|
||||
# 获取 API Key: https://platform.minimax.io/
|
||||
# LLM_API_KEY=your_minimax_api_key_here
|
||||
# LLM_BASE_URL=https://api.minimax.io/v1
|
||||
# LLM_MODEL_NAME=MiniMax-M2.5
|
||||
# LLM_MODEL_NAME=MiniMax-M2.7
|
||||
# 国内用户可使用: LLM_BASE_URL=https://api.minimaxi.com/v1
|
||||
|
||||
# ===== ZEP记忆图谱配置 =====
|
||||
|
|
|
|||
|
|
@ -135,11 +135,13 @@ ZEP_API_KEY=your_zep_api_key
|
|||
```env
|
||||
LLM_API_KEY=your_minimax_api_key
|
||||
LLM_BASE_URL=https://api.minimax.io/v1
|
||||
LLM_MODEL_NAME=MiniMax-M2.5
|
||||
LLM_MODEL_NAME=MiniMax-M2.7
|
||||
```
|
||||
|
||||
| Model | Description |
|
||||
|-------|-------------|
|
||||
| `MiniMax-M2.7` | Latest flagship model with enhanced reasoning and coding |
|
||||
| `MiniMax-M2.7-highspeed` | High-speed version of M2.7 for low-latency scenarios |
|
||||
| `MiniMax-M2.5` | Flagship model, 204K context window |
|
||||
| `MiniMax-M2.5-highspeed` | Same performance, faster and more agile |
|
||||
|
||||
|
|
|
|||
|
|
@ -135,11 +135,13 @@ ZEP_API_KEY=your_zep_api_key
|
|||
```env
|
||||
LLM_API_KEY=your_minimax_api_key
|
||||
LLM_BASE_URL=https://api.minimax.io/v1
|
||||
LLM_MODEL_NAME=MiniMax-M2.5
|
||||
LLM_MODEL_NAME=MiniMax-M2.7
|
||||
```
|
||||
|
||||
| 模型 | 说明 |
|
||||
|------|------|
|
||||
| `MiniMax-M2.7` | 最新旗舰模型,增强推理与编码能力 |
|
||||
| `MiniMax-M2.7-highspeed` | M2.7 高速版,低延迟场景适用 |
|
||||
| `MiniMax-M2.5` | 旗舰模型,204K 上下文窗口 |
|
||||
| `MiniMax-M2.5-highspeed` | 同等性能,更快更敏捷 |
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,12 @@ class TestIsMinimax:
|
|||
def test_minimax_highspeed(self):
|
||||
assert _is_minimax("MiniMax-M2.5-highspeed", "https://api.minimax.io/v1") is True
|
||||
|
||||
def test_minimax_m27(self):
|
||||
assert _is_minimax("MiniMax-M2.7", "https://api.minimax.io/v1") is True
|
||||
|
||||
def test_minimax_m27_highspeed(self):
|
||||
assert _is_minimax("MiniMax-M2.7-highspeed", "https://api.minimax.io/v1") is True
|
||||
|
||||
|
||||
class TestClampTemperature:
|
||||
def test_zero_temperature_minimax(self):
|
||||
|
|
@ -106,6 +112,14 @@ class TestClampTemperature:
|
|||
result = _clamp_temperature(1.0, "MiniMax-M2.5", "https://api.minimax.io/v1")
|
||||
assert result == 1.0
|
||||
|
||||
def test_zero_temperature_minimax_m27(self):
|
||||
result = _clamp_temperature(0.0, "MiniMax-M2.7", "https://api.minimax.io/v1")
|
||||
assert result == 0.01
|
||||
|
||||
def test_valid_temperature_minimax_m27(self):
|
||||
result = _clamp_temperature(0.7, "MiniMax-M2.7", "https://api.minimax.io/v1")
|
||||
assert result == 0.7
|
||||
|
||||
|
||||
class TestInjectJsonInstruction:
|
||||
def test_inject_to_existing_system_message(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue