From 4d5c91f15da7882531c0789be269560c96ca7f58 Mon Sep 17 00:00:00 2001 From: revastanislav Date: Fri, 22 Aug 2025 12:37:50 +0300 Subject: [PATCH] Use max completion_tokens instead max_tokens --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d15b719..249adb0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -151,7 +151,7 @@ function getAIResponse(prompt) { return { model: OPENAI_API_MODEL, temperature: 0.2, - max_tokens: 1400, + max_completion_tokens: 1400, top_p: 1, frequency_penalty: 0, presence_penalty: 0 diff --git a/src/main.ts b/src/main.ts index 69288bb..66ee908 100644 --- a/src/main.ts +++ b/src/main.ts @@ -129,7 +129,7 @@ async function getAIResponse(prompt: string): Promise