config API_TOKEN envs with customized name #25908
oliveagle
started this conversation in
Config, Settings and Keymaps
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there are numerous AI API providers, and many of them offer services following the OpenAI-compatible mode. In practical use, when tools in different scenarios need to call different models and models of varying sizes, the token names in the environment variables (env) often conflict.
For example,
OPENAI_API_KEY
to call theGPT-40
model onOPENROUTER
,Zed
or another tool also intends to use theOPENAI_API_KEY
to call theDeepseek-R1
model fromanother API provider
.At this time, the environment variable name of OPENAI_API_KEY creates a conflict.
Fortunately, most tools provide the function to configure the OPENAI_API_KEY. However, the Zed tool lacks this feature, which undoubtedly causes troubles for users. (If there is , plz let me know)
In order to give the Zed tool higher flexibility when using the services of other API providers, it is recommended that Zed can provide a function to customize the environment variable name of the OPENAI_API_KEY, or allow users to directly make relevant configurations in the configuration file. In this way, the inconvenience caused by the conflict of environment variable names can be effectively avoided, and the user experience can be improved.
e.g.:
Beta Was this translation helpful? Give feedback.
All reactions