Chatgpt with functions calls the same function twice

I am also facing the same issue. In my case the api is calling the same function 5 times or more and on each function call I can see that the function output has been submitted to the run and the run state changes to ‘in_progress’, then ‘queue’ and then back to ‘requires_action’. I have set a time limit of 30s and each time the assistant keep on calling the same function until the timeout exception is raised.

Checkout my code here: Assistant API - Function Calling

Let me know if someone finds the solution for this problem.

1 Like