File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,8 @@ async def _fetch_response(
521
521
# Match the behavior of Responses where store is True when not given
522
522
store = model_settings .store if model_settings .store is not None else True
523
523
524
+ reasoning_effort = model_settings .reasoning .effort if model_settings .reasoning else None
525
+
524
526
ret = await self ._get_client ().chat .completions .create (
525
527
model = self .model ,
526
528
messages = converted_messages ,
@@ -536,7 +538,7 @@ async def _fetch_response(
536
538
stream = stream ,
537
539
stream_options = {"include_usage" : True } if stream else NOT_GIVEN ,
538
540
store = store ,
539
- reasoning = self ._non_null_or_not_given (model_settings . reasoning ),
541
+ reasoning_effort = self ._non_null_or_not_given (reasoning_effort ),
540
542
extra_headers = _HEADERS ,
541
543
)
542
544
You can’t perform that action at this time.
0 commit comments