[DSV4] Support max reasoning effort (#40982)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Bugen Zhao
2026-04-29 11:03:47 +00:00
committed by GitHub
parent 37e288214b
commit 33f36d4260
6 changed files with 126 additions and 6 deletions
@@ -843,6 +843,13 @@ class TestGetSystemMessage:
f"{channel} missing when with_custom_tools={with_tools}"
)
def test_unsupported_reasoning_effort_raises_clear_error(self) -> None:
with pytest.raises(
ValueError,
match="reasoning_effort='max' is not supported by Harmony",
):
get_system_message(reasoning_effort="max")
class TestResponseInputToHarmonyReasoningItem:
"""Tests for response_input_to_harmony handling of reasoning input items.