We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e14355f + 64bdd38 commit 557da2fCopy full SHA for 557da2f
README.md
@@ -25,8 +25,10 @@ For lazy:
25
```lua
26
{
27
'skywind3000/vim-gpt-commit',
28
- config = function ()
29
- vim.g.gpt_commit_key = 'Your openai apikey'
+ config = function ()
+ -- if you don't want to set your api key directly, add to your .zshrc:
30
+ -- export OPENAI_API_KEY='sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
31
+ vim.g.gpt_commit_key = os.getenv("OPENAI_API_KEY")
32
-- uncomment this line below to enable proxy
33
-- vim.g.gpt_commit_proxy = 'socks5://127.0.0.1:1080'
34
end,
0 commit comments