OpenAIError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

As mentioned in the community’s Guidelines for Creating a Helpful Post, it’s really important to provide a complete, minimal, reproducible example. That’s how others can actually test your setup and lend a hand.