mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 23:47:54 +08:00
core/agent: send the resolved reasoning effort with each request
This commit is contained in:
@@ -235,6 +235,18 @@ def test_chat_param_to_responses_kwargs() -> None:
|
||||
assert kwargs["store"] is False
|
||||
assert kwargs["temperature"] == 0.2
|
||||
assert len(kwargs["tools"]) == 1
|
||||
# No effort configured → no reasoning block.
|
||||
assert "reasoning" not in kwargs
|
||||
|
||||
|
||||
def test_chat_param_to_responses_kwargs_reasoning_effort() -> None:
|
||||
param = ChatCompletionsParam(
|
||||
model="gpt-test",
|
||||
messages=[UserChatMessage(content="hi")],
|
||||
reasoning_effort="xhigh",
|
||||
)
|
||||
kwargs = chat_param_to_responses_kwargs(param)
|
||||
assert kwargs["reasoning"].effort == "xhigh"
|
||||
|
||||
|
||||
def test_provider_tools_merged_after_local_functions() -> None:
|
||||
|
||||
Reference in New Issue
Block a user