Is there a way to send an unique ID to the API (for example, text-davinci-003), and when the output for that request is sent back, the ID will be attached to it?
I want to send several API calls in a row, but need to make sure responses are matched to initial calls.
Normally you have to scale out synchronous calls on your end to achieve this. If you are doing a bunch of async calls, I don’t think there is a way to maintain sync once the responses come back.
So without waiting synchronously, or letting your system expand synchronously automatically, like cloud services will (which is how I solve it), you’re going to have to get creative.
I hope this will be improved in the future — it requires relatively little effort to maintain and pass through a request id on the server/provider side, and it provides a huge boost for those of us implementing async workflows.