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
+7 -4
View File
@@ -83,10 +83,13 @@ class _CodexResponsesModel(OpenAIResponsesModel):
effort = self._reasoning_effort
if effort and effort != "none":
# Clamp to efforts the backend accepts.
if effort == "minimal":
effort = "low"
elif effort == "xhigh":
effort = "high"
match effort:
case "minimal":
effort = "low"
case "xhigh" | "max":
effort = "high"
case _:
pass
overrides = overrides.resolve(ModelSettings(reasoning=Reasoning(effort=effort)))
return model_settings.resolve(overrides)