OpenAI assistant stuck in the middle of a response

I’m using assistant api and it’s file_search tool. Sometimes it would get stuck in the middle of a response saying something like
‘i will now search for your item
msearch[“my item”]’

and that’s it. it won’t say anything else, unless another call has been made.

So my problem is it would get stuck in a middle of a response and won’t give me the answer unless another call has been made. It happens like 5-10% of the time and I wanna avoid it.
I have tried it both on the assistant playground and the assistant api, the same issue persists everywhere.

Does anyone know what’s going on here and how to avoid this ?
Cheers

1 Like