Skip to content

Commit a4b4e65

Browse files
authored
📝 (README.md): add support for custom AI models and update documentation to reflect new environment variable OCO_ AI_PROVIDER (#351)
1 parent c5ee5cd commit a4b4e65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ You can also run it with local model through ollama:
7070
git add <files...>
7171
OCO_AI_PROVIDER='ollama' opencommit
7272
```
73+
If you want to use a model other than mistral, you can do so by setting the `OCO_AI_PROVIDER` environment variable as follows:
74+
75+
```sh
76+
OCO_AI_PROVIDER='ollama/llama3:8b' opencommit
77+
```
7378

7479
### Flags
7580

@@ -110,6 +115,7 @@ OCO_LANGUAGE=<locale, scroll to the bottom to see options>
110115
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=<message template placeholder, default: '$msg'>
111116
OCO_PROMPT_MODULE=<either conventional-commit or @commitlint, default: conventional-commit>
112117
OCO_ONE_LINE_COMMIT=<one line commit message, default: false>
118+
OCO_AI_PROVIDER=<anthropic, azure, ollama or ollama/model default ollama model: mistral>
113119
```
114120

115121
### Global config for all repos

0 commit comments

Comments
 (0)