Skip to content

Commit 57e0890

Browse files
committed
šŸ“ docs(README.md): update GWZ_MODEL options to include new model variants
šŸ”§ refactor(config.ts): expand GWZ_MODEL validation to support additional models The README.md and config.ts files have been updated to reflect the inclusion of new model variants for the GWZ_MODEL configuration. This change allows users to select from a broader range of AI models, enhancing the flexibility and customization of the tool. The update ensures that users are aware of all available options and that the configuration validator correctly enforces the supported models.
1 parent 24c67d8 commit 57e0890

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

ā€ŽREADME.mdā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ GWZ_OPENAI_MAX_TOKENS=<max response tokens from OpenAI API>
4848
GWZ_OPENAI_BASE_PATH=<may be used to set proxy path to OpenAI api>
4949
GWZ_DESCRIPTION=<postface a message with ~3 sentences description of the changes>
5050
GWZ_EMOJI=<boolean, add GitMoji>
51-
GWZ_MODEL=<either 'gpt-4', 'gpt-4-1106-preview' (default), 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo'>
51+
GWZ_MODEL=<either 'gpt-4-1106-preview','gpt-4','gpt-4-0613','gpt-4-0314','gpt-3.5-turbo-1106','gpt-3.5-turbo','gpt-3.5-turbo-0613','gpt-3.5-turbo-0301'>
5252
GWZ_LANGUAGE=<locale, scroll to the bottom to see options>
5353
GWZ_MESSAGE_TEMPLATE_PLACEHOLDER=<message template placeholder, default: '$msg'>
5454
GWZ_PROMPT_MODULE=<either conventional-commit or @commitlint, default: conventional-commit>

ā€Žout/cli.cjsā€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21544,12 +21544,16 @@ var configValidators = {
2154421544
validateConfig(
2154521545
"GWZ_MODEL" /* GWZ_MODEL */,
2154621546
[
21547-
"gpt-3.5-turbo",
21548-
"gpt-4",
2154921547
"gpt-4-1106-preview",
21550-
"gpt-3.5-turbo-0613"
21548+
"gpt-4",
21549+
"gpt-4-0613",
21550+
"gpt-4-0314",
21551+
"gpt-3.5-turbo-1106",
21552+
"gpt-3.5-turbo",
21553+
"gpt-3.5-turbo-0613",
21554+
"gpt-3.5-turbo-0301"
2155121555
].includes(value),
21552-
`${value} is not supported yet, use 'gpt-4', 'gpt-4-1106-preview' (default), 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo'`
21556+
`${value} is not supported yet, use 'gpt-4-1106-preview','gpt-4','gpt-4-0613','gpt-4-0314','gpt-3.5-turbo-1106','gpt-3.5-turbo','gpt-3.5-turbo-0613','gpt-3.5-turbo-0301'`
2155321557
);
2155421558
return value;
2155521559
},

ā€Žout/github-action.cjsā€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27966,12 +27966,16 @@ var configValidators = {
2796627966
validateConfig(
2796727967
"GWZ_MODEL" /* GWZ_MODEL */,
2796827968
[
27969-
"gpt-3.5-turbo",
27970-
"gpt-4",
2797127969
"gpt-4-1106-preview",
27972-
"gpt-3.5-turbo-0613"
27970+
"gpt-4",
27971+
"gpt-4-0613",
27972+
"gpt-4-0314",
27973+
"gpt-3.5-turbo-1106",
27974+
"gpt-3.5-turbo",
27975+
"gpt-3.5-turbo-0613",
27976+
"gpt-3.5-turbo-0301"
2797327977
].includes(value),
27974-
`${value} is not supported yet, use 'gpt-4', 'gpt-4-1106-preview' (default), 'gpt-3.5-turbo-0613' or 'gpt-3.5-turbo'`
27978+
`${value} is not supported yet, use 'gpt-4-1106-preview','gpt-4','gpt-4-0613','gpt-4-0314','gpt-3.5-turbo-1106','gpt-3.5-turbo','gpt-3.5-turbo-0613','gpt-3.5-turbo-0301'`
2797527979
);
2797627980
return value;
2797727981
},

ā€Žsrc/commands/config.tsā€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,16 @@ export const configValidators = {
124124
validateConfig(
125125
CONFIG_KEYS.GWZ_MODEL,
126126
[
127-
'gpt-3.5-turbo',
128-
'gpt-4',
129127
'gpt-4-1106-preview',
130-
'gpt-3.5-turbo-0613'
128+
'gpt-4',
129+
'gpt-4-0613',
130+
'gpt-4-0314',
131+
'gpt-3.5-turbo-1106',
132+
'gpt-3.5-turbo',
133+
'gpt-3.5-turbo-0613',
134+
'gpt-3.5-turbo-0301'
131135
].includes(value),
132-
`${value} is not supported yet, use 'gpt-4', 'gpt-4-1106-preview' (default), 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo' or 'gpt-4-1106-preview'`
136+
`${value} is not supported yet, use 'gpt-4-1106-preview','gpt-4','gpt-4-0613','gpt-4-0314','gpt-3.5-turbo-1106','gpt-3.5-turbo','gpt-3.5-turbo-0613','gpt-3.5-turbo-0301'`
133137
);
134138
return value;
135139
},

0 commit comments

Comments
Ā (0)