AutoGPT
AutoGPT copied to clipboard
feat(autogpt): Handle OpenAI API key exceptions gracefully
OPEN-337, OPEN-305
- Better handle no API keys or invalid ones
- Handle exception and exit when invalid key is provided
- Handle any APIError exception when trying to get OpenAI models and exit
Deploy Preview for auto-gpt-docs canceled.
Name | Link |
---|---|
Latest commit | 357e3cdb0be3e46f092a6e69d499463456404093 |
Latest deploy log | https://app.netlify.com/sites/auto-gpt-docs/deploys/65fd5c8bad067c000822f57b |
This PR needs updating because clean_input
is no longer async (since 632686cfa5f5590642016bbc0f976a037ed3d361). I'll do that myself if you don't get to it.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.
This PR needs updating because
clean_input
is no longer async (since 632686c). I'll do that myself if you don't get to it.
Done
Codecov Report
Attention: Patch coverage is 25.92593%
with 20 lines
in your changes are missing coverage. Please review.
Project coverage is 45.40%. Comparing base (
dde0c70
) to head (357e3cd
). Report is 1 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #6992 +/- ##
==========================================
- Coverage 45.54% 45.40% -0.15%
==========================================
Files 139 139
Lines 6514 6530 +16
Branches 915 917 +2
==========================================
- Hits 2967 2965 -2
- Misses 3397 3413 +16
- Partials 150 152 +2
Flag | Coverage Δ | |
---|---|---|
Linux | 45.40% <25.92%> (-0.04%) |
:arrow_down: |
Windows | ? |
|
autogpt-agent | 45.40% <25.92%> (-0.12%) |
:arrow_down: |
macOS | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.