File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Preface
2
2
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:
4
4
5
5
![ ] ( https://skywind3000.github.io/images/p/misc/2024/gptcommit1.gif )
6
6
@@ -21,8 +21,8 @@ let g:gpt_commit_key = 'Your openai apikey'
21
21
22
22
" uncomment the following lines to use Ollama:
23
23
" let g:gpt_commit_engine = 'ollama'
24
- " let g:gpt_commit_ollama_model = 'llama2'
25
24
" let g:gpt_commit_ollama_url = 'http://127.0.0.1:11434/api/chat'
25
+ " let g:gpt_commit_ollama_model = 'llama2'
26
26
```
27
27
28
28
For lazy:
@@ -36,6 +36,11 @@ For lazy:
36
36
vim .g .gpt_commit_key = os.getenv (" OPENAI_API_KEY" )
37
37
-- uncomment this line below to enable proxy
38
38
-- 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'
39
44
end ,
40
45
},
41
46
```
You can’t perform that action at this time.
0 commit comments