Assistant API file_ids message bug

I’ve been trying to deal with a bug the past few days. I’ve isolated it down to file_ids being added to the client.beta.threads.messages.create method which makes BOTH the message and the run take between 1-3 minutes at least 50% of the time. Sometimes the message takes forever to create, but sometimes it’s instant and the run takes a long time instead.

Adding the file_ids to any other method does not cause the same problem, and neither does having the files uploaded on the assistant on the OpenAI site. I’ve seen lots of posts about people with ridiculously slow response times so it’s worth checking if this is the cause.

Model: 4.5 turbo (currently points to gpt-4-0125-preview)
Library: openai-python

1 Like