feat: register minimax baseline provider profile
This commit is contained in:
@@ -49,6 +49,13 @@ DEFAULT_PROFILES: Mapping[str, ProviderProfile] = MappingProxyType(
|
||||
thinking_off={},
|
||||
strip_think_tags=False,
|
||||
),
|
||||
# OpenAI 兼容基线,无已知注入差异;reasoning_content 由 transport 通用处理
|
||||
"minimax": ProviderProfile(
|
||||
name="minimax",
|
||||
thinking_on={},
|
||||
thinking_off={},
|
||||
strip_think_tags=False,
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -29,6 +29,11 @@ class TestDefaultProfiles:
|
||||
assert p.thinking_on == {} and p.thinking_off == {}
|
||||
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):
|
||||
"""消灭子串猜测: 未注册 provider 装配期即报错,不做模糊匹配。"""
|
||||
with pytest.raises(ValueError, match="glm"):
|
||||
|
||||
Reference in New Issue
Block a user