fix: explain explicit auto migration and verify probe cleanup
This commit is contained in:
@@ -911,3 +911,14 @@ class TestThinkingRawOwnership:
|
||||
wire = ThinkingWire(off=None, on_base={"output_config": {"enabled": True}}, effort_key=None)
|
||||
with pytest.raises(ThinkingUnsupportedError):
|
||||
validate_thinking_raw(raw, effort=Effort.AUTO, wire=wire, origin="test")
|
||||
|
||||
|
||||
def test_auto_rejection_explains_how_to_choose_explicitly():
|
||||
"""可执行配置是指路,不由库自动应用其建议。"""
|
||||
with pytest.raises(ThinkingUnsupportedError) as error:
|
||||
resolve_thinking(
|
||||
get_provider("minimax"), get_capability("MiniMax-M3"), Effort.AUTO, model="MiniMax-M3"
|
||||
)
|
||||
assert "REASONING_EFFORT=" in str(error.value)
|
||||
assert "reasoning_effort=Effort." in str(error.value)
|
||||
assert "EFFORT_FALLBACK=nearest" not in str(error.value)
|
||||
|
||||
Reference in New Issue
Block a user