Skip to content

Commit a448089

Browse files
feat: add instructions and support for configuring gpt-4-turbo (di-sukharev#320)
* 3.0.12 * build * feat: add 'gpt-4-turbo' to supported models in README and config validation --------- Co-authored-by: di-sukharev <[email protected]>
1 parent c410486 commit a448089

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ OCO_TOKENS_MAX_OUTPUT=<max response tokens (default: 500)>
9797
OCO_OPENAI_BASE_PATH=<may be used to set proxy path to OpenAI api>
9898
OCO_DESCRIPTION=<postface a message with ~3 sentences description of the changes>
9999
OCO_EMOJI=<boolean, add GitMoji>
100-
OCO_MODEL=<either 'gpt-4', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'>
100+
OCO_MODEL=<either 'gpt-4', 'gpt-4-turbo', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'>
101101
OCO_LANGUAGE=<locale, scroll to the bottom to see options>
102102
OCO_MESSAGE_TEMPLATE_PLACEHOLDER=<message template placeholder, default: '$msg'>
103103
OCO_PROMPT_MODULE=<either conventional-commit or @commitlint, default: conventional-commit>

out/cli.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16384,7 +16384,7 @@ function G3(t, e2) {
1638416384
// package.json
1638516385
var package_default = {
1638616386
name: "opencommit",
16387-
version: "3.0.11",
16387+
version: "3.0.12",
1638816388
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
1638916389
keywords: [
1639016390
"git",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencommit",
3-
"version": "3.0.11",
3+
"version": "3.0.12",
44
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
55
"keywords": [
66
"git",

src/commands/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,11 @@ export const configValidators = {
159159
'gpt-3.5-turbo-0125',
160160
'gpt-4',
161161
'gpt-4-1106-preview',
162-
'gpt-4-turbo-preview',
163-
'gpt-4-0125-preview'
162+
'gpt-4-0125-preview',
163+
'gpt-4-turbo',
164+
'gpt-4-turbo-preview'
164165
].includes(value),
165-
`${value} is not supported yet, use 'gpt-4', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-turbo-preview' or 'gpt-4-0125-preview'`
166+
`${value} is not supported yet, use 'gpt-4', 'gpt-4-turbo', 'gpt-3.5-turbo' (default), 'gpt-3.5-turbo-0125', 'gpt-4-1106-preview', 'gpt-4-0125-preview' or 'gpt-4-turbo-preview'`
166167
);
167168
return value;
168169
},

0 commit comments

Comments
 (0)