LagPixelLOL / ChatGPTCLIBot

ChatGPT Bot in CLI with long term memory support using Embeddings.
MIT License
341 stars 38 forks source link

API request failed: SSL connect error #12

Closed ghtg closed 1 year ago

ghtg commented 1 year ago

Creating folders... Created folder: "initial" Created folder: "saved" Created folder: "documentQA" Creating folders completed. Config file does not exist: "config.json" Creating new config file: "config.json" Saving config to file: "config.json" Config saved to file: "config.json" Creating default prompt file: "initial\Default.txt" Default prompt file processing completed. Please enter your OpenAI API key: sk-xxx Checking API key... API request failed: SSL connect error API request failed, please try again.

LagPixelLOL commented 1 year ago

Hello, which OS are you using? Are you using ubuntu or other Linux distro? Are you using any proxy or VPN?

ghtg commented 1 year ago

Os windows 10, using psiphon vpn

LagPixelLOL commented 1 year ago

Try close the VPN.

LagPixelLOL commented 1 year ago

Did closing the VPN fix your issue?

ghtg commented 1 year ago

No

LagPixelLOL commented 1 year ago

Can you try execute this command in your cmd and send me back the result?

curl https://api.openai.com/v1/embeddings -H "Authorization: Bearer REPLACE_THIS_WITH_YOUR_API_KEY" -H "Content-Type: application/json" -d "{\"input\":\"Hello world!\",\"model\":\"text-embedding-ada-002\"}"
LagPixelLOL commented 1 year ago

You can reopen this issue if you want to help me locate your issue.