Does Visual Studio Code support Environment Variables for the ChatGPT extension

0 votes

I would like to open the editor and be able to use the ChatGPT extension without needing to log in via browser or store the OpenAI api key in a workspace file. Ideally, I would be able to use the environment variable stored in .zshenv.

I know that Visual Studio Code allows for some environment variables to be set but not all via ${ENV_EXAMPLE} but this has not worked for me in the settings.json file:

{
  "chatgpt.response.showNotification": true,
  "chatgpt.gpt3.maxTokens": 2048,
  "chatgpt.gpt3.apiKey": "${OPEN_AI_API_KEY}",
}

Apr 18, 2023 in ChatGPT by anonymous
• 990 points

edited 4 days ago 8 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP