I’m writing a chatbot client for accessing an Assistant with model gpt-4o via API.
The chatbot is integrated in a webapp for giving users a dedicated support.
Sometimes the model needs internet access for fetching required informations.
The Message response from the API is similar to this “I’m looking for information in internet. Wait a moment please”.
How can I understand from the API response that the last message is not the one that the user is waiting for?
And than, how can I fetch the message once the internet search is completed?
Retrieving the Run object (GET /v1/threads/{thread_id}/runs/{run_id}) the status is “completed” and “incomplete_details” is null.
I’m expecting a status like “in_progress”,“required_action” or “incomplete”…
Comparing with other API calls (giving the right response and no need of internet access) there’s apparently no differences in the JSON response.
Can anyone help me?
Thanks in advance