open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

re: add markdown message for insufficient_quota error in openai

Open cyai opened this issue 7 months ago • 0 comments

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):

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

OS Tests (optional but appreciated):

  • [ ] Tested on Windows
  • [x] Tested on MacOS
  • [ ] Tested on Linux

cyai avatar Jul 23 '24 16:07 cyai