Skip to content

Commit 33f624c

Browse files
fix: 'max_tokens' parameter deprecated - should use 'max_completion_tokens'
1 parent ad5994d commit 33f624c

File tree

5 files changed

+913
-10426
lines changed

5 files changed

+913
-10426
lines changed

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Commit message: `,
159159
messages,
160160
n: 1,
161161
temperature: 0,
162-
max_tokens: 100,
162+
max_completion_tokens: 200,
163163
}
164164

165165
const response = await openai.chat.completions.create(parameters)
@@ -216,9 +216,6 @@ const gitExtension = (_args) => {
216216
title: 'gpt-5-thinking (Extended Reasoning)',
217217
value: 'gpt-5-thinking',
218218
},
219-
{ title: 'gpt-4o-mini (Previous Gen)', value: 'gpt-4o-mini' },
220-
{ title: 'gpt-4o (Previous Gen)', value: 'gpt-4o' },
221-
{ title: 'gpt-3.5-turbo (Legacy)', value: 'gpt-3.5-turbo' },
222219
],
223220
initial: 0,
224221
})

0 commit comments

Comments
 (0)