Hi, I am running the following example:
https://github.com/jerryjliu/llama_index/blob/main/docs/examples/usecases/10k_sub_question.ipynbI have provided the OpenAPI key like this in my python file and it is stored in a
.env
file like this:
OPENAI_API_KEY=sk
on the project root:
import os
from dotenv import load_dotenv
load_dotenv()
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
I get this error in the console from this line
response = s_engine.query("question")
when running the query if you refer to the example link above:
Exception has occurred: RetryError
RetryError[<Future at 0x16a336b90 state=finished raised APIConnectionError>]
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)
The above exception was the direct cause of the following exception:
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host api.openai.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')]
The above exception was the direct cause of the following exception:
openai.error.APIConnectionError: Error communicating with OpenAI
Any ideas how to resolve this issue. Thanks