Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 50 forks source link

Add one new secure way to get the api key. #75

Closed OliverChao closed 7 months ago

OliverChao commented 7 months ago

Add env is also unsafe. If users use password managers like 1Password or Bitwarden, they can get the api key by running some system command. For example bw get password chatgpt-api-key.

This pr adds one new config option to supplement methods getting the KEY.