Merge PR #1525: fix(codex): pass reasoning_effort to Codex API

fix(codex): pass reasoning_effort to Codex API
This commit is contained in:
Xubin Ren 2026-03-05 00:31:09 +08:00 committed by GitHub
commit a2762351b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,9 @@ class OpenAICodexProvider(LLMProvider):
"parallel_tool_calls": True,
}
if reasoning_effort:
body["reasoning"] = {"effort": reasoning_effort}
if tools:
body["tools"] = _convert_tools(tools)