I think I’ve solved my issue, I was looping through each tool call, the error was only seen when I had more than 1 tool call.
I was returning the openai.chat.completions.create call inside of the for loop and not outside of it, causing the second tool call to be completed ommited.
I still see the following error though:
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_O99wyVF6KhPoswftxi6o0DHB’,
type: ‘invalid_request_error’,
param: ‘messages.[11].role’,
code: null
it seems like the param is different now: ‘messages.[11].role’
what reason could that be?