Skip to content

Commit 45b7b65

Browse files
author
skywind3000
committed
update doc for Ollama
1 parent 93277b6 commit 45b7b65

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Preface
22

3-
Generate proper git commit message using ChatGPT or [Ollama](https://github.com/ollama/ollama) in Vim:
3+
Generate proper git commit message using ChatGPT (or [Ollama](https://github.com/ollama/ollama)) in Vim:
44

55
![](https://skywind3000.github.io/images/p/misc/2024/gptcommit1.gif)
66

@@ -21,8 +21,8 @@ let g:gpt_commit_key = 'Your openai apikey'
2121
2222
" uncomment the following lines to use Ollama:
2323
" let g:gpt_commit_engine = 'ollama'
24-
" let g:gpt_commit_ollama_model = 'llama2'
2524
" let g:gpt_commit_ollama_url = 'http://127.0.0.1:11434/api/chat'
25+
" let g:gpt_commit_ollama_model = 'llama2'
2626
```
2727

2828
For lazy:
@@ -36,6 +36,11 @@ For lazy:
3636
vim.g.gpt_commit_key = os.getenv("OPENAI_API_KEY")
3737
-- uncomment this line below to enable proxy
3838
-- vim.g.gpt_commit_proxy = 'socks5://127.0.0.1:1080'
39+
40+
-- uncomment the following lines to use Ollama:
41+
-- vim.g.gpt_commit_engine = 'ollama'
42+
-- vim.g.gpt_commit_ollama_url = 'http://127.0.0.1:11434/api/chat'
43+
-- vim.g.gpt_commit_ollama_model = 'llama2'
3944
end,
4045
},
4146
```

0 commit comments

Comments
 (0)