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

Connection error no matter what ip I use #46

Open
Kriston-12 opened this issue Jul 17, 2024 · 2 comments
Open

Connection error no matter what ip I use #46

Kriston-12 opened this issue Jul 17, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Kriston-12
Copy link

I am 100% sure I set all config appropriately with my openAI.
I have the connection error after a while of a loading bar showing Aide is processing--it can not process it properly

@Kriston-12
Copy link
Author

I tried to use my base url (https://api.openai.com/v1) in my browser, it does not work at all--status code 404.
Then I changed my url to https://api.openai.com/v1/models, it returns a json object showing "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY). You can obtain an API key from https://platform.openai.com/account/api-keys." -- even though I already set the key in the extension config

@Kriston-12 Kriston-12 changed the title Connection error no matter what ip I uses Connection error no matter what ip I use Jul 17, 2024
@2214962083
Copy link
Contributor

Make sure you can access openai.com in your browser and can successfully ping openai.com in the command terminal. If you're using a proxy, it often only works for the browser and not for the terminal.

In this case, you can set the system environment variable HTTPS_PROXY = http://127.0.0.1:xxx
where xxx is your proxy port.

If you're using Clash, the default port is 7890, so it would be HTTPS_PROXY = http://127.0.0.1:7890, If you're using Clash, remember to turn on the TUN switch in the Clash settings, then try again.

@2214962083 2214962083 added the question Further information is requested label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants