I want the chat to reply with a function call if it requires a user to clarify his request or if any follow-up input is expected. I am building the voice chat app and need to know whether to continue listening for the user input or if the conversation is finished.
I added a function and described it as “Call this function when you expect a user to clarify his request.” I played with the description, trying to come up with the best formula, but I could hardly force the chat to call the function when expected. Sometimes, it is called, and sometimes, it is not.
I use non-EN language when communicating with the model (be-BY).
Here’s the function definition:
{
"name": "expectInput",
"parameters": {
"type": "object",
"properties": {
"reply": {
"type": "string",
"description": "the question that you want me to clarify"
}
},
"required": [
"reply"
]
},
"description": "Call this function if your reply expects me to respond to you"
}
When testing it in the playground via Assistant, the function is never called with the answer of chatGPT, but if I rerun the assistant on the conversation - it calls the function after his reply:
Me: ask me anything. [press Run btn]
Chat: how are you today?
[pressing Run again]
Chat: [function call appears]
Does anyone know the recipe for this problem?