assistant request timeout
# support
g
is assistant request timeout 5s sharp and if you are late it fails? I retrieve the prompt from a google doc, retrieve the appointment calendar and detail about the person calling from CRM and sometimes it takes more than 5s, due to three api calls. Can you increase the timeout to ten seconds?
v
Hi @GeneralKugelBlitz, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Get Assistant]() * [Create Assistant]() * [Outbound Sales Example]() * [List Assistants]() -----------------------------
### Answer Currently, the specific details regarding the timeout settings for function calls or API requests in Vapi aren't explicitly mentioned in the provided documentation. To address the issue of needing more than the standard timeout due to multiple API calls, I recommend optimizing the API call process or handling data retrieval more efficiently if possible. If adjusting the timeout to 10 seconds is critical for your application's functionality, I suggest contacting Vapi support directly to discuss potential customization of the timeout settings for your specific use case. They might offer solutions or configurations that are not publicly documented. For now, review your implementation for any possible optimizations and consider asynchronous handling of data retrieval to fit within the existing constraints.
s
Nope, we can’t because we need to spin up other stuffs as well to process everything.
u
@GeneralKugelBlitz not sure if you ever solved this. I came across this post as i was trying to find the timeout for the assistant request (and i guess its 5 seconds 😁 ) You can inject the data once the call is connected via the call control url in to the system prompt if your data is taking a little longer.
k
Hey Stu, nice hack. The default timeout is 7.5 seconds.
5 Views