You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the ai calls QuerySQLDataBaseTool more than once in a single shot, we get the openai.BadRequestError: Error code: 400 error "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'
Reason for this is because inside the QuerySQLDataBaseTool, we append a tool message and an ai message each time
And so we get tool messages separated by ai messages, which is problematic
This can also happen if another tool is used alongside the QuerySQLDataBaseTool
The text was updated successfully, but these errors were encountered:
If the ai calls
QuerySQLDataBaseTool
more than once in a single shot, we get theopenai.BadRequestError: Error code: 400
error"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'
Reason for this is because inside the
QuerySQLDataBaseTool
, we append a tool message and an ai message each timeAnd so we get tool messages separated by ai messages, which is problematic
This can also happen if another tool is used alongside the
QuerySQLDataBaseTool
The text was updated successfully, but these errors were encountered: