GPT-4o calling function after generating response with content

In the past, I iterated over all generated tool calls, executed them, and added them to the messages input until it generated a response with content.

However, with GPT-4o, the AI responds with:

“Let me search the web for you…”
instead of function calls.

How do I know when to stop calling chat completion API and pass the turn to the user with the new model?

Thanks!

1 Like