We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2a915 commit fda5c28Copy full SHA for fda5c28
rdagent/oai/backend/litellm.py
@@ -91,8 +91,11 @@ def _create_chat_completion_inner_function( # type: ignore[no-untyped-def] # no
91
temperature = float(mc["temperature"])
92
if "max_tokens" in mc:
93
max_tokens = int(mc["max_tokens"])
94
- if "reasoning_effort" in mc and mc["reasoning_effort"] in ["low", "medium", "high"]:
95
- reasoning_effort = cast(Literal["low", "medium", "high"], mc["reasoning_effort"])
+ if "reasoning_effort" in mc:
+ if mc["reasoning_effort"] in ["low", "medium", "high"]:
96
+ reasoning_effort = cast(Literal["low", "medium", "high"], mc["reasoning_effort"])
97
+ else:
98
+ reasoning_effort = None
99
break
100
response = completion(
101
model=model,
0 commit comments