OpenAI-sublime-text
OpenAI-sublime-text copied to clipboard
CERTIFICATE_VERIFY_FAILED when using custom API provider via httpS
Hello,
My custom OpenAi Provider (ollama) use https with a self-signed certificate.
When the plugin try to connect to it, an error pops up with "error OpenAi: CERTIFICATE_VERIFY_FAILED..."
How can I tell the plugin to not verify the ssl context of the connection ? (or better, set the path to ca bundle to use ?)
thanks a lot !
update: I found some reference, but not sure if it is the solution, and how to apply it to your code. : https://stackoverflow.com/questions/48908044/how-to-disable-ssl-verification-for-http-client-httpsconnection-class-in-python