Most use cases require to upload new files upon each request/message.
I understand that the file might not be processed right away which is a bummer but your proposed solution is not ideal at all. I can think of 2 possible solutions:
- The API should only return back a response once all the files are processed and ready to use.
- They should expose an endpoint or whatever to check the processed status of the attached file
Until then, this issue is still open.
Edit:
This behavior is totally unexpected and unacceptable since we follow the guides created by OpenAI for a reason and we expect the things to work right away. They don’t even mention this limitation anywhere as far as I checked. For each little thing, we have to create an inefficient workaround to make it work for a general use case, most of the time.