After applying this suggestion problem is fixed:
https://stackoverflow.com/a/79052345/727997
It tells using truststore
pip install truststore
then adding this to your python code above your openai calls:
import truststore
truststore.inject_into_ssl()
# thing that calls requests.get
I had also followed these steps to install the certificates: https://community.openai.com/t/ssl-certificate-verify-failed/32442/58