From e3ce91cfa1fb113ae681c6ec8e6ea89f8570b516 Mon Sep 17 00:00:00 2001 From: ChenZhoYu <790348264@qq.com> Date: Fri, 17 May 2024 23:56:45 +0800 Subject: [PATCH] fix: model error --- service/src/chatgpt/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/chatgpt/index.ts b/service/src/chatgpt/index.ts index 72aba69384..380a901b49 100644 --- a/service/src/chatgpt/index.ts +++ b/service/src/chatgpt/index.ts @@ -54,7 +54,7 @@ let api: ChatGPTAPI | ChatGPTUnofficialProxyAPI options.maxResponseTokens = 8192 } // if use GPT-4 Turbo or GPT-4o - else if (/-preview|-turbo|-o/.test(model.toLowerCase())) { + else if (/-preview|-turbo|o/.test(model.toLowerCase())) { options.maxModelTokens = 128000 options.maxResponseTokens = 4096 }