huggingface / llm.nvim

LLM powered development for Neovim
Apache License 2.0
788 stars 50 forks source link

How to use proxy env var #108

Open SethARhodes opened 2 months ago

SethARhodes commented 2 months ago

I am unable to communicate with any http endpoints because I am behind a corporate proxy that uses self-signed certificates. Typically we use the http_proxy and https_proxy environment variables for this purpose, but I can't see any obvious configurations that I can add to my lua config to make this work.

I have tried adding http_proxy = "http://ProxyURL:ProxyPort" to cmd_env in the llm.setup but it still keeps throwing an http error... invalid peer certificate, unknown issuer.