gannonh / chatgpt-pgvector

ChatGTP (gpt3.5-turbo) starter app
https://astro-labs.app/docs
933 stars 131 forks source link

question: how to set http/https proxy for access open AI api? #4

Open AwesomeYuer opened 1 year ago

AwesomeYuer commented 1 year ago

question: how to set http/https proxy for access open AI API? thanks

Changlon commented 1 year ago

in your python code , import os and add code like below: os.environ["https_proxy"] = "http://IP:PORT"