I am able to run the sample code given here in Google Colab:
https://platform.openai.com/docs/api-reference/chat?lang=python
But when I run it in my local virtual env, it gives this error:
APIConnectionError: Connection error.
I am using the same key.
I am not in VPN.
in full error, I see
ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1020)
I tried running
/Applications/Python*/Install\ Certificates.command
It did not help.
Any guidance appreciated.
Thanks