RamiAwar / dataline

Chat with your data - AI data analysis and visualization on CSV, Postgres, MySQL, Snowflake, SQLite...
https://dataline.app
GNU General Public License v3.0
773 stars 70 forks source link

Flaky issue with OpenAI calls using tools #172

Closed anthony2261 closed 3 months ago

anthony2261 commented 4 months ago
BadRequestError('Error code: 400 - {\'error\': {\'message\': "An assistant message with \'tool_calls\' must be followed by tool messages responding to each \'tool_call_id\'. The following tool_call_ids did not have response messages: call_i8vT76kQ8XOpe9ErYaTYRRxV", \'type\': \'invalid_request_error\', \'param\': \'messages.[14].role\', \'code\': None}}')

POSSIBLY RELATED: image

Rami:

I would debug this and go through tool by tool, then you can see the call_id and understand what that's supposed to be and directly know where it's missing

anthony2261 commented 3 months ago

fixed in https://github.com/RamiAwar/dataline/commit/b191ff231c56ffc44444e05a05ff05bce4cc3ec3