Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry 503 OpenAI errors #4745

Merged
merged 1 commit into from
Jun 19, 2023
Merged

Retry 503 OpenAI errors #4745

merged 1 commit into from
Jun 19, 2023

Conversation

waynehamadi
Copy link
Contributor

@waynehamadi waynehamadi commented Jun 19, 2023

Background

#4744
it needs to be an internal PR

Changes

Documentation

Test Plan

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes.
  • I have run the following commands against my code to ensure it passes our linters:
    black .
    isort .
    mypy
    autoflake --remove-all-unused-imports --recursive --ignore-init-module-imports --ignore-pass-after-docstring autogpt tests --in-place

Signed-off-by: Merwane Hamadi <[email protected]>
@waynehamadi waynehamadi force-pushed the add-503-errors-to-retry branch from c5514df to 1fead30 Compare June 19, 2023 20:12
@Auto-GPT-Bot
Copy link
Contributor

You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged.

@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Patch coverage: 73.87% and project coverage change: +20.11 🎉

Comparison is base (cd8fdb3) 50.90% compared to head (1fead30) 71.02%.

Additional details and impacted files
@@             Coverage Diff             @@
##           stable    #4745       +/-   ##
===========================================
+ Coverage   50.90%   71.02%   +20.11%     
===========================================
  Files          65       71        +6     
  Lines        2976     3537      +561     
  Branches      504      563       +59     
===========================================
+ Hits         1515     2512      +997     
+ Misses       1336      852      -484     
- Partials      125      173       +48     
Impacted Files Coverage Δ
autogpt/cli.py 0.00% <0.00%> (ø)
autogpt/commands/web_playwright.py 0.00% <0.00%> (ø)
autogpt/singleton.py 100.00% <ø> (ø)
autogpt/speech/eleven_labs.py 28.57% <14.28%> (-0.85%) ⬇️
autogpt/main.py 22.36% <22.22%> (+22.36%) ⬆️
autogpt/speech/say.py 36.66% <25.00%> (ø)
autogpt/commands/audio_text.py 30.76% <26.66%> (+30.76%) ⬆️
autogpt/processing/text.py 36.44% <33.66%> (+16.13%) ⬆️
autogpt/configurator.py 30.37% <41.02%> (+30.37%) ⬆️
autogpt/utils.py 62.62% <47.61%> (-4.44%) ⬇️
... and 52 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@waynehamadi waynehamadi merged commit 3e697d5 into stable Jun 19, 2023
@waynehamadi waynehamadi deleted the add-503-errors-to-retry branch June 19, 2023 20:20
@krrishdholakia
Copy link

Hey @merwanehamadi

Have you looked at wrapping the base openai call with reliableGPT? Might be helpful here

from reliablegpt import reliableGPT
openai.ChatCompletion.create = reliableGPT(openai.ChatCompletion.create, ...)

Source: https://github.com/BerriAI/reliableGPT

dayofthedave pushed a commit to dayofthedave/Auto-GPT that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants