mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix tests
This commit is contained in:
parent
7f3cbd41e3
commit
c0baf0f6a6
1 changed files with 8 additions and 2 deletions
|
|
@ -186,8 +186,14 @@ class LiteLLMCompletionResponsesConfig:
|
|||
if reasoning_param:
|
||||
if isinstance(reasoning_param, dict):
|
||||
# reasoning can be {"effort": "low|medium|high", "summary": "detailed"}
|
||||
# Preserve the full dict structure for reasoning_effort
|
||||
reasoning_effort = reasoning_param
|
||||
# Keep the full dict when summary is set so the responses API bridge can
|
||||
# forward it; otherwise use the effort string for chat completion (e.g. Gemini).
|
||||
if "summary" in reasoning_param:
|
||||
reasoning_effort = reasoning_param
|
||||
elif "effort" in reasoning_param:
|
||||
reasoning_effort = reasoning_param.get("effort")
|
||||
else:
|
||||
reasoning_effort = reasoning_param
|
||||
elif isinstance(reasoning_param, str):
|
||||
# reasoning could be a string directly
|
||||
reasoning_effort = reasoning_param
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue