feat: register minimax baseline provider profile

This commit is contained in:
2026-07-20 21:33:24 -04:00
parent 137f1ffa36
commit 0f4ae5ee8b
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -49,6 +49,13 @@ DEFAULT_PROFILES: Mapping[str, ProviderProfile] = MappingProxyType(
thinking_off={}, thinking_off={},
strip_think_tags=False, strip_think_tags=False,
), ),
# OpenAI 兼容基线,无已知注入差异;reasoning_content 由 transport 通用处理
"minimax": ProviderProfile(
name="minimax",
thinking_on={},
thinking_off={},
strip_think_tags=False,
),
} }
) )
+5
View File
@@ -29,6 +29,11 @@ class TestDefaultProfiles:
assert p.thinking_on == {} and p.thinking_off == {} assert p.thinking_on == {} and p.thinking_off == {}
assert p.strip_think_tags is False assert p.strip_think_tags is False
def test_minimax_baseline_profile(self):
p = get_provider("minimax")
assert p.thinking_on == {} and p.thinking_off == {}
assert p.strip_think_tags is False
def test_unknown_provider_fails_loudly(self): def test_unknown_provider_fails_loudly(self):
"""消灭子串猜测: 未注册 provider 装配期即报错,不做模糊匹配。""" """消灭子串猜测: 未注册 provider 装配期即报错,不做模糊匹配。"""
with pytest.raises(ValueError, match="glm"): with pytest.raises(ValueError, match="glm"):