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

Cors error - Unable to complete requests to the OpenAI API #486

Closed
kolindes opened this issue Jul 29, 2024 · 4 comments
Closed

Cors error - Unable to complete requests to the OpenAI API #486

kolindes opened this issue Jul 29, 2024 · 4 comments

Comments

@kolindes
Copy link

  1. Started chatgpt-web using Docker on the server machine-1 in the local network.
  2. Machine-1 also has running OpenVPN and has access to the internet.
  3. Provided valid OpenAI API token (100%).
  4. Successfully opened web UI on machine-2.
  5. Machine-2 web client network requests result in CORS error.
@treaki
Copy link

treaki commented Aug 5, 2024

try version 1 / legacy api from https://platform.openai.com/settings/profile?tab=api-keys

@Niek
Copy link
Owner

Niek commented Aug 5, 2024

It should work with both API keys. Do you have a screenshot?

@michaelortnerit
Copy link

Hello,

i have the same problem. I generated a API Key and added it to the webui, i used the default docker-compose from the project and connected to: localhost:5173. I pasted the api key there and try to make a new chat with "Hello" the response is Error: Failed to Fetch

I am on the Free Plan to test it.

image

@Niek
Copy link
Owner

Niek commented Oct 4, 2024

Maybe the free plan does not allow CORS: *? I still can't reproduce this. I am closing this for now, but if someone still has the issue, please reply with a screenshot of the devtools showing the error.

@Niek Niek closed this as completed Oct 4, 2024
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

4 participants