Replies: 1 comment 3 replies
-
Hi @unk1911, thanks for using simple-openai! In the logs that you shared, I can see that OpenAI has taken your question and it has decided to make two calls to your function So, you must provide a 'tool' message per every tool_call, however, you are providing a 'tool' message for only one ( I suggest studying the code of the ConversationDemo.java to see how to answer for multiple tool_calls. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
it would seem that if my prompt is more complex and contains requests for multiple things, i get an error when using the Simple-Openai.
for example here's an error i get if my prompt is: "what the latest news from [Ukraine, Colombia]? today is 2024-10-13":
but if i keep my question simple, like:
"what the latest news from [Ukraine]? today is 2024-10-13":
then it works every time. but i'm hoping to have it work regardless of how the question is asked by the user, if it's about 1 thing or 4 things..
-m
Beta Was this translation helpful? Give feedback.
All reactions