Replies: 1 comment
-
I did ask a question on the OpenAI API forums about this as well. It seems this mixed content response type is indeed intended behavior. If that's the case, how would we handle that using the ChatClient as I'm doing in my example app? The intermediate content generated with the tool_call (addItemsToGrocery) is getting lost because all of the back-and-forth is automated and only the last completion is returned to me. https://community.openai.com/t/tool-choice-auto-sending-content-and-tool-calls/1199283/2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am creating a simple example that exhibits tool calling: https://github.com/callibrity/tools-demo
The idea is that I can use this to do a meal plan. When I execute the following prompt (via HTTPie):
http POST localhost:8080/chat prompt="Please provide a meal plan for the next 5 days for my family. If I need to buy groceries, please update my grocery list with anything I'm missing. Return a detailed, bulleted list of all meals you've planned separated by day as the final completion (after adding items to my grocery list)."
This is the flow I'm observing:
Now, this behavior isn't consistent. Sometimes, I get back the bulleted list meal plan by day, but sometimes I get something more summary-level like above. Is there a way to tell OpenAI not to return mixed content and tool_calls? I thought that's what
auto
was supposed to do.Beta Was this translation helpful? Give feedback.
All reactions