Rasa.dialogue_understanding.generator.llm_command_generator - [error ] llm_command_generator.llm.error error=CohereConnectionError(message=Cannot connect to host api.cohere.ai:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILE

I passed cohere api key and rasa license from terminal .

When I run rasa inspect and enter hi , in terminal am able to the error message - “rasa.dialogue_understanding.generator.llm_command_generator - [error ] llm_command_generator.llm.error error=CohereConnectionError(message=Cannot connect to host api.cohere.ai:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILE”

Please suggest me solutions to resolve this. Am using Mac M1 chip.

To resolve the SSLCertVerificationError when connecting to the Cohere API, follow these steps:

  1. Check Internet and Firewall:
  • Ensure stable internet connection.
  • Verify firewall settings aren’t blocking the API.
  1. Update System Certificates:
  • On Linux: sudo update-ca-certificates
  • On macOS: sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /path/to/certificate
  • On Windows: Update your OS to update certificates.
  1. Custom SSL Certificates:
  • Add any required custom certificates to your trusted store.
  1. Verify API Endpoint:
  • Ensure you’re using the correct Cohere API endpoint.
  1. SSL/TLS Version:
  • Ensure compatibility between the SSL/TLS versions used by your client and the Cohere API.
  1. Check Code Configuration:
  • Verify the SSL certificate path and configuration in your code or settings.

I Hope its clear now.