Recure 'urllib3.exceptions.ProxyError' when running openai example

When I run openai example: python openai-test.py, ‘urllib3.exceptions.ProxyError’ happned. The code of openai-test.py is:

import os
import openai
openai.api_key = os.getenv(“OPENAI_API_KEY”)

completion = openai.ChatCompletion.create(
model=“gpt-3.5-turbo”,
messages=[
{“role”: “system”, “content”: “You are a poetic assistant, skilled in explaining complex programming concepts with creative flair.”},
{“role”: “user”, “content”: “Compose a poem that explains the concept of recursion in programming.”}
]
)

print(completion.choices[0].message)

I use SsrDogPro for VPN proxy, My computer OS is Windows10.
I wish you can help me to resolve this problem, thanks a lot.

You should check the proxy setting that has been injected into your windows network settings. Try other urllib3 code for getting some web resources. If you’ve caused a problem that broke python, that’s sort of out of the ream of solutions to pursue here.