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

re: add markdown message for insufficient_quota error in openai #1349

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cyai
Copy link
Contributor

@cyai cyai commented Jul 23, 2024

Describe the changes you have made:

If you run out of money/funds in openai account then currently the interpreter throws an exception. Instead this PR ensures that it print the error message without crashing or dropping the conversation, so you can replenish account and continue.

Reference any relevant issues (e.g. "Fixes #000"):

Fixes #1297

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs)
  • I have read docs/CONTRIBUTING.md
  • I have read docs/ROADMAP.md

OS Tests (optional but appreciated):

  • Tested on Windows
  • Tested on MacOS
  • Tested on Linux

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.

Should not crash from running out of money
1 participant