Support *_BASE_URL Environment Variables for LLM Providers #47188
Lition13
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, Zed supports configuring LLM providers via environment variables such as ANTHROPIC_API_KEY, which is very convenient for secure and centralized configuration.
However, many users run LLM services through self-hosted gateways, proxies, or compatible third-party endpoints, which require overriding the default API base URL (for example, when using OpenAI-compatible or Anthropic-compatible services).
It would be very helpful if Zed could also recognize optional *_BASE_URL environment variables, such as:
When present, Zed could use these values instead of the built-in default endpoints, similar to how API keys are resolved today.
This would:
I believe this would significantly improve flexibility for advanced and enterprise users.
Thanks for the great work on Zed!
Beta Was this translation helpful? Give feedback.
All reactions