fix(browse): exponential backoff when OpenAI throttles API calls
adding retry/backoff ability by pulling function out
@dbillor There are conflicts now
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Would PR also solve issues like #2363? @dbillor :)
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
😨
Not sure what nuke exploded here, but I think the commit history is broken...

@dbillor please fix the commit history so we can merge
@dbillor please fix the commit history so we can merge
done
@dbillor fix formatting using isort.
@dbillor fix formatting using isort.
updated
Sorry to disappoint now, but it seems this was already fixed in #1537: https://github.com/Significant-Gravitas/Auto-GPT/blob/14d3ecaae75a80f03cd118b5767e1c6affb4e3cc/autogpt/llm_utils.py#L96
Also, this PR is currently broken as it applies the edit to scripts/browse.py which doesn't exist anymore.. That decorator is nice though. :)
Closing as duplicate.