I created a Discord bot that uses a custom assistant and vision.
When I first released the update, I know for a fact that I and 1 other user tested it, and currently neither of us can interact with the bot.
The response is failed, but I do have a theory, since I know me and this user both tested the bot with the vision update, and neither of us can interact with the bot, my theory is that the thread contains an image URL that is no longer valid.
I logged let retrieve = await openai.beta.threads.runs.retrieve(thread.id, createRun.id); to see what the response was actually saying, and it was: https://paste.valhalladev.org/cekiqemure.yaml
So you can see the last error was invalid_image, but the thing is, the query does not include an image.
The bot strictly only accepts Discord attachments, and I include checking to ensure the file IS an image file. This means that all images uploaded to vision, is hosted on Discord CDN... Which means if those links expire, they still exist in the thread, but the bot can not access it, hence the error.
I know a temporary fix is to simply create a new thread (which I did and can confirm the error no longer occured)
This is not a good fix, what are my options here?
Bonus, if there is a method to maybe retreive the thread and see which file is invalid?