instructor_ex icon indicating copy to clipboard operation
instructor_ex copied to clipboard

Return raw errors

Open seanmor5 opened this issue 9 months ago • 2 comments

This is just a proposal, but basically I have a reasonably complex workflow that requires a lot of calls to the OAI API. Because of this, I'm running into rate limit issues that I would like to handle by adding some retries with backoff functionality. I can just match on {:error, _}, but having the raw errors would make things a bit easier because I can handle the specific case where the API returns a rate-limit exceeded error and do the retries in that case. Thoughts?

seanmor5 avatar May 03 '24 12:05 seanmor5