Skip to content

Commit

Permalink
chore: auto-generate vimdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 10, 2023
1 parent 3010063 commit b815509
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions doc/gp.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,20 @@ suprised at the end of the month.

The OpenAI API key can be passed to the plugin in multiple ways:

--------------------------------------------------------------------------------------------
Method Example Security
Level
--------------- -------------------------------------------------------------- -------------
hardcoded openai_api_key: "sk-...", Low
string
---------------------------------------------------------------------------------------------
Method Example Security
Level
---------------- -------------------------------------------------------------- -------------
hardcoded string openai_api_key: "sk-...", Low

default env var set OPENAI_API_KEY environment variable in shell config Medium
default env var set OPENAI_API_KEY environment variable in shell config Medium

custom env var openai_api_key = os.getenv("CUSTOM_ENV_NAME"), Medium
custom env var openai_api_key = os.getenv("CUSTOM_ENV_NAME"), Medium

read from file openai_api_key = { "cat", "path_to_api_key" }, Medium-High
read from file openai_api_key = { "cat", "path_to_api_key" }, Medium-High

password openai_api_key = { "bw", "get", "password", "OAI_API_KEY" }, High
manager
--------------------------------------------------------------------------------------------
password manager openai_api_key = { "bw", "get", "password", "OAI_API_KEY" }, High
---------------------------------------------------------------------------------------------
If `openai_api_key` is a table, Gp runs it asynchronously to avoid blocking
Neovim (password managers can take a second or two).

Expand Down

0 comments on commit b815509

Please sign in to comment.