Skip to content

Commit 1d6980f

Browse files
add ollama support (#269)
* add ollama support --------- Co-authored-by: di-sukharev <dim.sukharev@gmail.com> Co-authored-by: GPT10 <57486732+di-sukharev@users.noreply.github.com> Co-authored-by: Jaroslaw Weber <jaroslaw.weber@adriel.com>
1 parent 57d9cc5 commit 1d6980f

File tree

14 files changed

+8910
-9067
lines changed

14 files changed

+8910
-9067
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<h2>Auto-generate meaningful commits in 1 second</h2>
88
<p>Killing lame commits with AI 🤯🔫</p>
99
<a href="https://www.npmjs.com/package/opencommit"><img src="https://img.shields.io/npm/v/opencommit" alt="Current version"></a>
10-
<h4 align="center">🪩 Winner of GitHub 2023 HACKATHON <a href="https://twitter.com/io_Y_oi/status/1683448136973582336"><img style="width:14px; height:14px; margin-top: -4px" src=".github/github-mark-white.png" align="center"></a>
11-
</h4>
10+
<h4 align="center"><a href="https://twitter.com/io_Y_oi/status/1683448136973582336">🪩 Winner of GitHub 2023 HACKATHON 🪩</a></h4>
1211
</div>
1312

1413
---
@@ -57,6 +56,17 @@ git add <files...>
5756
oco
5857
```
5958

59+
You can also run it with local model through ollama:
60+
- install and start ollama
61+
- run `ollama run mistral` (do this only once, to pull model)
62+
- run (in your project directory):
63+
64+
```sh
65+
git add <files...>
66+
AI_PROVIDER='ollama' opencommit
67+
```
68+
69+
6070
## Configuration
6171

6272
### Local per repo configuration

0 commit comments

Comments
 (0)