Environment :
python virtualenv on windows
Error :
APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host=‘api.openai.com’, port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)’)))
Steps taken :
followed hardkothari1988 post on SSL: certificate_verify_failed - #40 by aditya.akella - API - OpenAI API Community Forum ;
Downloaded the certificae (sni.cloudflaressl.com) and placed it in a folder.
Created an environment variable in a .env file
Result : Still failing, maybe the certificate is missing some info at its beginning