AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

fix(browse): exponential backoff when OpenAI throttles API calls

Open dbillor opened this issue 3 years ago • 10 comments

adding retry/backoff ability by pulling function out

dbillor avatar Apr 05 '23 00:04 dbillor

@dbillor There are conflicts now

nponeccop avatar Apr 12 '23 17:04 nponeccop

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Apr 17 '23 15:04 github-actions[bot]

Would PR also solve issues like #2363? @dbillor :)

Pwuts avatar Apr 18 '23 15:04 Pwuts

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

github-actions[bot] avatar Apr 18 '23 16:04 github-actions[bot]

😨

sadmuphin avatar Apr 18 '23 18:04 sadmuphin

Not sure what nuke exploded here, but I think the commit history is broken...

image

Pwuts avatar Apr 18 '23 23:04 Pwuts

@dbillor please fix the commit history so we can merge

Pwuts avatar Apr 19 '23 16:04 Pwuts

@dbillor please fix the commit history so we can merge

done

dbillor avatar Apr 19 '23 22:04 dbillor

@dbillor fix formatting using isort.

AndresCdo avatar Apr 20 '23 17:04 AndresCdo

@dbillor fix formatting using isort.

updated

dbillor avatar Apr 20 '23 18:04 dbillor

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.

Pwuts avatar Apr 20 '23 19:04 Pwuts