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
OCO_TOKEN_LIMITのデフォルト値を4096に設定しました。また、configファイルと関連する箇所でOCO_TOKEN_LIMITを使用するように変更しました。
※gpt-4やgpt-3.5-turbo-16kの最大トークン数に対応するためにOCO_TOKEN_LIMITでトークン数の最大数を変更できるようにした
🔧 fix(cli.cjs, github-action.cjs, api.ts, config.ts, generateCommitMessageFromGitDiff.ts): Set the default value of OCO_TOKEN_LIMIT to 4096
Set the default value of OCO_TOKEN_LIMIT to 4096. Also updated the relevant parts in the config file and other files to use OCO_TOKEN_LIMIT.
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,24 @@
19
19
20
20
All the commits in this repo are authored by OpenCommit — look at [the commits](https://github.com/di-sukharev/opencommit/commit/eae7618d575ee8d2e9fff5de56da79d40c4bc5fc) to see how OpenCommit works. Emojis and long commit descriptions are configurable.
21
21
22
+
## Enhanced from the original upstream [di-sukharev/opencommit](https://github.com/di-sukharev/opencommit)
23
+
24
+
This repository is forked from the original [di-sukharev/opencommit](https://github.com/di-sukharev/opencommit).
25
+
Enhancing functionality adopting early some pull requests I need.
26
+
27
+
Added features
28
+
* Support [Azure OpenAI Service #167](https://github.com/di-sukharev/opencommit/pull/167)
29
+
* Support [push config #220](https://github.com/di-sukharev/opencommit/pull/220)
30
+
* Add translations to English commit messages
31
+
*~~Add [prefix on commit messages #160](https://github.com/di-sukharev/opencommit/pull/160)~~
32
+
* The fixed token limit of 4096 can now be changed with OCO_TOKEN_LIMIT to support gtp-3.5-turbo-16k.
33
+
and etc..
34
+
35
+
You can install it with the following command.
36
+
```shell
37
+
$ npm install github:takuya-o/opencommit
38
+
```
39
+
22
40
## Setup OpenCommit as a CLI tool
23
41
24
42
You can use OpenCommit by simply running it via the CLI like this `oco`. 2 seconds and your staged changes are committed with a meaningful message.
@@ -172,12 +190,14 @@ You may switch to GPT-4 which performs better, but costs ~x15 times more 🤠
172
190
173
191
```sh
174
192
oco config set OCO_MODEL=gpt-4
193
+
oco config set OCO_TOKEN_LIMIT=32768
175
194
```
176
195
177
196
or for as a cheaper option:
178
197
179
198
```sh
180
199
oco config set OCO_MODEL=gpt-3.5-turbo
200
+
oco config set OCO_TOKEN_LIMIT=16384
181
201
```
182
202
183
203
Make sure that you spell it `gpt-4` (lowercase) and that you have API access to the 4th model. Even if you have ChatGPT+, that doesn't necessarily mean that you have API access to GPT-4.
0 commit comments