messages with role 'tool' must be a response to a preceeding message with 'tool_calls #2869
Unanswered
brianpham93
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I'm having the same exact problem though I wasn't just a week ago or so. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm encountering this error
'message': \"Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls
from both Azure OpenAI and OpenAI API chat completion endpoints.It looks like this is due to executor executing multiple functions at once rather than doing it one by one, after getting the function's result. Is there anyway to force that only 1 function could be executed at a time to ensure the order of messages ?
Beta Was this translation helpful? Give feedback.
All reactions