mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-09-10 19:57:07 +00:00
Use max completion_tokens instead max_tokens
This commit is contained in:
parent
ec9123d49c
commit
4d5c91f15d
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -151,7 +151,7 @@ function getAIResponse(prompt) {
|
||||||
return {
|
return {
|
||||||
model: OPENAI_API_MODEL,
|
model: OPENAI_API_MODEL,
|
||||||
temperature: 0.2,
|
temperature: 0.2,
|
||||||
max_tokens: 1400,
|
max_completion_tokens: 1400,
|
||||||
top_p: 1,
|
top_p: 1,
|
||||||
frequency_penalty: 0,
|
frequency_penalty: 0,
|
||||||
presence_penalty: 0
|
presence_penalty: 0
|
||||||
|
|
|
@ -129,7 +129,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
|
||||||
return {
|
return {
|
||||||
model: OPENAI_API_MODEL,
|
model: OPENAI_API_MODEL,
|
||||||
temperature: 0.2,
|
temperature: 0.2,
|
||||||
max_tokens: 1400,
|
max_completion_tokens: 1400,
|
||||||
top_p: 1,
|
top_p: 1,
|
||||||
frequency_penalty: 0,
|
frequency_penalty: 0,
|
||||||
presence_penalty: 0
|
presence_penalty: 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue