Skip to content

Conversation

@seanmor5
Copy link

@seanmor5 seanmor5 commented May 3, 2024

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
Copy link
Author

seanmor5 commented May 3, 2024

I guess I should also point out that you can control what I'm trying to do with the http_options passed to Req

@armanm
Copy link
Contributor

armanm commented May 7, 2024

+1

I would structured data to not be turned into string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants