We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda4dbe commit 5ae771fCopy full SHA for 5ae771f
mirix/llm_api/openai_client.py
@@ -158,6 +158,10 @@ def build_request_data(
158
except ValueError as e:
159
logger.warning(f"Failed to convert tool function to structured output, tool={tool}, error={e}")
160
161
+ else:
162
+ # When there are no tools, delete tool_choice entirely from the request
163
+ delattr(data, 'tool_choice')
164
+
165
return data.model_dump(exclude_unset=True)
166
167
def fill_image_content_in_messages(self, openai_message_list):
0 commit comments