From e29e370f25cae33b053253af00652e0bdc4b075c Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 7 Nov 2023 21:37:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E5=9E=8BmaxToken=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20gpt4=E5=90=8E=E7=BB=AD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/common.js b/utils/common.js index 03c5271..5f45572 100644 --- a/utils/common.js +++ b/utils/common.js @@ -832,8 +832,10 @@ export function getMaxModelTokens (model = 'gpt-3.5-turbo') { if (model.startsWith('gpt-3.5-turbo')) { if (model.includes('16k')) { return 16000 - } else { + } else if (model.includes('0613') || model.includes('0314')) { return 4000 + } else { + return 16000 } } else { if (model.includes('32k')) {