Код: Выделить всё
import ssl
import certifi
certifi.where()
import openai
api_key='my_api_key' #it is confidential string
openai.api_key = api_key
response = openai.File.create(file=open("C:\\Users\\pythons_scripts\\Corporate Governance1658287996.json"), purpose="search")
print(response)
Код: Выделить всё
SSLCertVerificationError Traceback (most recent call last)
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)
APIConnectionError Traceback (most recent call last)
APIConnectionError: Error communicating with OpenAI
Подробнее здесь: https://stackoverflow.com/questions/731 ... nnecting-t