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

gptscript 443 #904

Open
wendy2017 opened this issue Nov 10, 2024 · 1 comment
Open

gptscript 443 #904

wendy2017 opened this issue Nov 10, 2024 · 1 comment
Assignees

Comments

@wendy2017
Copy link

when i use using storybook.gpt,it shows errors bellow::
tips: in asia,using vpn
api.openai.com/v1/chat/completions": dial tcp 103.252.115.221:443: connect: connection refused

anybodys can help? please

@njhale
Copy link
Member

njhale commented Nov 21, 2024

Hi @wendy2017, thanks for reporting this issue and for your patience!

I just pulled and tested https://github.com/gptscript-ai/story-book. It works for me, however I'm in the US and not using a VPN.

A quick Google search returns OpenAI forum posts from quite a few folks encountering similar issues connecting to the OpenAI API and ChatGPT when using a VPN. There are also several articles about OpenAI restricting VPN access and use from countries that aren't in this list.

Are you able to access ChatGPT or hit the OpenAI API directly while connected to your VPN?

You can check the latter by running the curl command below.

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
     "model": "gpt-4o-mini",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.7
   }'

@njhale njhale self-assigned this Nov 21, 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

2 participants