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.