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 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
2828For 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```
You can’t perform that action at this time.
0 commit comments