i am running python on a windows 10 laptop. Within python my code uses openai to query gpt-3.5-turbo. I have used setx to add my api key to my environment, which checks valid for gpt-3.5-turbo and this key is successfully loaded into python. Also my certificate is valid
import certifi
certifi.where()
‘C:\Users\covelld\AppData\Local\anaconda3\Lib\site-packages\certifi\cacert.pem’
Using the code in
under ‘Handling Errors’
I get
The server could not be reached
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)
There are many blogs about this issue, and I have explored most of them, without success. Within Chrome Ctrl + Shift + i followed by 'view certificates ’ looks valid.
Since the error begins with ‘The server could not be reached’, I question what server it is looking for, and whether the link from Chrome to python running in the cmd window, might be a source of the error.
Anyone with suggestions, please chime in.
Thanks