-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copilot: Support HTTP/HTTPS proxy for Copilot language server #24364
copilot: Support HTTP/HTTPS proxy for Copilot language server #24364
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
12c5452
to
9fa24c4
Compare
Thanks for helping clean this up! Let me know if you've got further changes planned or if you'd like me to go in and fix up the merge conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I would suggest falling back upon the global proxy setting if |
the correct syntax: |
I wholly agree this should be the default behavior. If |
Closes #6701 (one of the top ranking issues as of writing)
Adds the ability to specify an HTTP/HTTPS proxy to route Copilot code completion API requests through. This should fix copilot functionality in restricted network environments (where such a proxy is required) but also opens up the ability to point copilot code completion requests at your own local LLM, using e.g.:
External MITM-proxy tools permitting, this can serve as a stop-gap to allow local LLM code completion in Zed until a proper OpenAI-compatible local code completions provider is implemented. With this in mind, in this PR I've added separate
settings.json
variables to configure a proxy server specific to the code completions provider instead of using the globalproxy
setting, to allow for cases like this where we only want to proxy e.g. the Copilot requests, but not all outgoing traffic from the application.Currently, two new settings are added:
inline_completions.copilot.proxy
: Proxy server URL (HTTP and HTTPS schemes supported)inline_completions.copilot.proxy_no_verify
: Whether to disable certificate verification through the proxyExample:
Release Notes: