feat: default reasoning effort from xhigh to medium
Reduces token usage and latency for most tasks by defaulting to medium reasoning effort instead of xhigh. Users can still override via config or CLI flag. Updates code, tests, example config, and docs.
This commit is contained in:
parent
23e84de830
commit
b84f9e410c
9 changed files with 25 additions and 24 deletions
|
|
@ -498,12 +498,12 @@ class TestBuildApiKwargs:
|
|||
assert kwargs["extra_body"]["provider"]["only"] == ["Anthropic"]
|
||||
|
||||
def test_reasoning_config_default_openrouter(self, agent):
|
||||
"""Default reasoning config for OpenRouter should be xhigh."""
|
||||
"""Default reasoning config for OpenRouter should be medium."""
|
||||
messages = [{"role": "user", "content": "hi"}]
|
||||
kwargs = agent._build_api_kwargs(messages)
|
||||
reasoning = kwargs["extra_body"]["reasoning"]
|
||||
assert reasoning["enabled"] is True
|
||||
assert reasoning["effort"] == "xhigh"
|
||||
assert reasoning["effort"] == "medium"
|
||||
|
||||
def test_reasoning_config_custom(self, agent):
|
||||
agent.reasoning_config = {"enabled": False}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue