From a5fe671ffe3448b29c8abc0157bf037e356e98a7 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Mon, 4 Sep 2023 11:32:49 +0800 Subject: [PATCH] perf: timeout --- client/src/service/moduleDispatch/chat/oneapi.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/service/moduleDispatch/chat/oneapi.ts b/client/src/service/moduleDispatch/chat/oneapi.ts index 574aa413886..e77943e5049 100644 --- a/client/src/service/moduleDispatch/chat/oneapi.ts +++ b/client/src/service/moduleDispatch/chat/oneapi.ts @@ -119,12 +119,10 @@ export const dispatchChatCompletion = async (props: Record): Promis : []), ...messages ], - // frequency_penalty: 0.5, // 越大,重复内容越少 - // presence_penalty: -0.5, // 越大,越容易出现新内容 stream }, { - timeout: stream ? 120000 : 480000, + timeout: 480000, responseType: stream ? 'stream' : 'json', ...axiosConfig(userOpenaiAccount) }