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

Issue Connecting with Open AI API #19

Open
jsanchezl12 opened this issue Mar 14, 2023 · 5 comments
Open

Issue Connecting with Open AI API #19

jsanchezl12 opened this issue Mar 14, 2023 · 5 comments

Comments

@jsanchezl12
Copy link

Hello, I am having trouble with the API Key setting, maybe is something that I need to configure? I just set my API Key, and run it locally, but it stills showing an error

image

image

I run it as docker container

image

@cogentapps
Copy link
Owner

cogentapps commented Mar 14, 2023

If you're sure you set the API key correctly, it's probably just OpenAI's servers being overloaded. I noticed the completion API started to return a higher rate of errors a few hours ago, usually with an HTTP response that says "this model is overloaded, try again". See if clicking Regenerate fixes it. I'll add automatic retry logic soon which should help.

@jsanchezl12
Copy link
Author

Thanks 👍

I test it in the page but is not working, maybe we can't access anymore. 😓 Link

image

@johnvesalius
Copy link

I'm seeing the same. I can connect with the same API key using curl without issues, but the web app fails with a "401 Unauthorized". The API key is entered correctly. Not sure how to troubleshoot further.

@cogentapps
Copy link
Owner

cogentapps commented Mar 16, 2023

So, the 401 unauthorized error (as seen in the image above) is not related. The chatapi/sync endpoint is for storing and syncing the message you submitted, but only works when you are signed in. (It should only run when signed in, but that logic isn’t implemented yet, so there’s an error.)

In the network debugger you can look for a request to the OpenAI chat completion endpoint right when you submit your message. That’s the important one. For me, it’s been failing off and on over the last few days, usually with a 429 Too Many Requests error and a message that says the model is overloaded. Since it’s an OpenAI API error, there’s not much that can be done in the app, except resubmitting the request.

I saw several threads about this issue on the OpenAI Discord - I imagine they’re having to scale up server capacity to meet demand for GPT-4 and these are just growing pains.

@johnvesalius
Copy link

Makes sense, thanks!

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

3 participants