Bypassing proxy settings with OpenAi's Python SDK

Fixed just by adding these 3 lines:

os.environ['HTTP_PROXY'] = ''
os.environ['HTTPS_PROXY'] = ''
os.environ['NO_PROXY'] = 'api.openai.com'

Probably has something to do with httpx lib used by the openai sdk.
:man_shrugging:

1 Like