Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions backend/tests/test_supplier_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import json
import os
import re
import unittest

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

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

def test_minimax_has_model_config_type_0(self):
"""MiniMax should have model_config with type 0 (LLM)."""
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/entity/supplier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const supplierList: Array<{
0: {
api_domain: 'https://api.minimax.io/v1',
common_args: [{ key: 'temperature', val: 0.7, type: 'number', range: '[0, 1]' }],
model_options: [{ name: 'MiniMax-M3' }, { name: 'MiniMax-M2.7' }],
model_options: [{ name: 'MiniMax-M3.1-Flash' }, { name: 'MiniMax-M3' }],
},
},
},
Expand Down
Loading