Skip to content

[BUG] "Connection Failed" when adding OpenAI provider that has a $0 balance #2342

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

Open
pbarney opened this issue May 28, 2025 · 1 comment
Open

Comments

@pbarney
Copy link

pbarney commented May 28, 2025

Bug Description
When setting up the OpenAI provider, after pasting in the API key and pressing the Check button, the Chatbox will display a Connection Failed message if the account balance is zero ($0.00). This may be the case with other providers, but I have not tested this.

Steps to Reproduce

  1. Have a $0.00 balance in your OpenAI API account
  2. Go to SettingsModel ProviderOpenAI → Enter your API key → press Check
  3. See the Connection Failed error

Expected Results
I would expect a more helpful message such as Insufficient Quota. OpenAI returns an HTTP 429 error with an insufficient_quota message:

{
  "error": {
    "message": "You exceeded your current quota, please check your plan and billing details.",
    "type": "insufficient_quota",
    "param": null,
    "code": "insufficient_quota"
  }
}

Desktop:

  • Operating System: Windows
  • Application Version: 1.13.1
@themez
Copy link
Contributor

themez commented May 29, 2025

maybe we could show error message while checking failed

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

No branches or pull requests

2 participants