Skip to content

Commit 8a4fc9d

Browse files
fix: Unsupported value: 'temperature' does not support 0 with this model. Only the default (1) value is supported.
1 parent 377157f commit 8a4fc9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const gptCommit = async () => {
133133
{
134134
role: 'user',
135135
content: prefixState.isEnabled()
136-
? `Analyze the following git diff and generate a semantic commit message that explains the purpose and impact of these changes.
136+
? `Analyze the following git diff and generate a semantic commit message that explains the purpose and impact of these changes.
137137
Use an appropriate conventional commit prefix (feat:, fix:, chore:, refactor:, perf:, test:, style:, docs:, build:, ci:, revert:) based on the type and intent of changes.
138138
Structure: <prefix>: <what> to <achieve what benefit/fix what issue>
139139
Example: "feat: add user authentication to improve security"
@@ -158,7 +158,7 @@ Commit message: `,
158158
model,
159159
messages,
160160
n: 1,
161-
temperature: 0,
161+
temperature: 1,
162162
max_completion_tokens: 200,
163163
}
164164

0 commit comments

Comments
 (0)