mirror of
https://github.com/usestrix/strix.git
synced 2026-08-21 18:52:47 +02:00
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:
co-authored by
Ahmed Allam
parent
22d668d538
commit
2e7040240d
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user