feat(config): accept STRIX_REASONING_EFFORT=max for providers that support it (#956)

Co-authored-by: Ahmed Allam <allam@usestrix.com>
This commit is contained in:
devin-ai-integration[bot]
2026-08-01 17:10:01 -07:00
committed by GitHub
co-authored by Ahmed Allam
parent 22d668d538
commit 2e7040240d
6 changed files with 39 additions and 9 deletions
+11
View File
@@ -129,6 +129,17 @@ def test_prompt_cache_kept_for_non_bedrock_claude_even_if_unmapped(monkeypatch:
]
def test_max_reasoning_effort_sent_as_raw_body_field() -> None:
# "max" is absent from the OpenAI SDK's Reasoning enum, and LiteLLM's DeepSeek
# mapping collapses every effort to thinking-enabled, so it has to ride along
# as a raw body field to reach the provider.
settings = make_model_settings(
"max", model_name="deepseek/deepseek-v4-flash", request_timeout=30
)
assert settings.reasoning is None
assert settings.extra_args == {"timeout": 30, "extra_body": {"reasoning_effort": "max"}}
def test_conversation_tail_breakpoint_moves_with_appended_transcript() -> None:
# LiteLLM must place the index=-1 cache_control on the last message however
# long the transcript grows.