gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.5k stars 755 forks source link

Why can't you access the chatGptAPI interface suddenly? how to solve it? #174

Closed YJHXZ closed 1 year ago

YJHXZ commented 1 year ago

image request to https://api.openai.com/v1/chat/completions failed, reason: connect ETIMEDOUT 108.160.167.165:443 It didn't show up yesterday, but it's a problem today. I don't know what's going on.

gencay commented 1 year ago

@YJHXZ thanks for using the extension. There could be a limitation to ports in your region. Could you check this reply from @yibuxulong here: https://github.com/gencay/vscode-chatgpt/issues/176#issuecomment-1453020918

This reply from the other thread may help:

thanks for your replying! @gencay I found out that may be because the chatgpt is also locked to the Chinese port in the API as that in the website, which was not the case a week ago. I have restored normal use by switching the port. I hope it can help other users. Thank you again for your work and time.