I am currently working with the OpenAI Assistant API and have a question regarding the time constraints for function execution within the API workflow. Specifically, when a request to the API necessitates further action, such as the execution of a function, I understand there is a time limit within which the function’s results must be submitted back to the API.
I’m wondering if there’s any document mentioning about it? Or if there’s any way to setup the expiration time?
I am not sure there is a documented time limit - but usually there are a lot of other things that (also) create time limits. Can you share a little bit more what you are running into?
I attempted to execute a Run, leading to perform tool calling. However, upon receiving the response and preparing to submit the tool output back to the run object, I encountered a ‘Bad Request’ error because the Run had expired.
Yet, in the document there’s no any further detailed information on it though.
Thanks for the detailed reply. That’s really helpful, and the blog is also amazing.
However, I was still wondering if there’s any way to set this expiration time on our own.
The problem happen when the tool take too much time in respond, so the api return 400. But sometimes it process twice and you see the in the messages 2 equals.