#Fetching last message for long time response

1 messages · Page 1 of 1 (latest)

fresh stirrup
#

Hello! I'm writing a chatbot client integrated in my webapp for giving users a dedicated support, calling an Assistant via API. Sometime the response take a long time to be prepared, especially when an internet search is needed, and the API returns a temporary response like "I’m looking for information in internet. Wait a moment please". I don't want to show this message to the user forcing him to ask for the final answer; I want to wait for the final response, also if it takes a long time.
How can I understand that this one is an "intermediate" message?
Retrieving the Run object (GET /v1/threads/{thread_id}/runs/{run_id}) the status is “completed” and “incomplete_details” is null, and there apparently no difference with other "complete" JSON response.
Can anyone help me?
Thanks in advance

steel bramble
#

You can define your system prompt to not return response like waite a moment while doing internet research.