mirror of
https://github.com/usestrix/strix.git
synced 2026-08-25 12:22:37 +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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user