You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ git add <files...>
58
58
oco
59
59
```
60
60
61
+
Link to the GitMoji specification: https://gitmoji.dev/
62
+
61
63
You can also run it with local model through ollama:
62
64
63
65
- install and start ollama
@@ -69,6 +71,17 @@ git add <files...>
69
71
AI_PROVIDER='ollama' opencommit
70
72
```
71
73
74
+
### Flags
75
+
There are multiple optional flags that can be used with the `oco` command:
76
+
77
+
#### Use Full GitMoji Specification
78
+
This flag can only be used if the `OCO_EMOJI` configuration item is set to `true`. This flag allows users to use all emojis in the GitMoji specification, By default, the GitMoji full specification is set to `false`, which only includes 10 emojis (🐛✨📝🚀✅♻️⬆️🔧🌐💡).
79
+
This is due to limit the number of tokens sent in each request. However, if you would like to use the full GitMoji specification, you can use the `--fgm` flag.
80
+
81
+
```
82
+
oco --fgm
83
+
```
84
+
72
85
## Configuration
73
86
74
87
### Local per repo configuration
@@ -77,7 +90,8 @@ Create a `.env` file and add OpenCommit config variables there like this:
77
90
78
91
```env
79
92
OCO_OPENAI_API_KEY=<your OpenAI API token>
80
-
OCO_OPENAI_MAX_TOKENS=<max response tokens from OpenAI API>
93
+
OCO_TOKENS_MAX_INPUT=<max model token limit (default: 4096)>
outputTokensTooHigh=`Token limit exceeded, OCO_TOKENS_MAX_OUTPUT must not be much higher than the default ${DEFAULT_TOKEN_LIMITS.DEFAULT_MAX_TOKENS_OUTPUT} tokens.`
0 commit comments