From ddc7066f4e4491b3bd80cefc83ea30b490fce20c Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Sat, 8 Apr 2023 11:57:41 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=BB=98=E8=AE=A4=20100=20=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 277c641..f494055 100644 --- a/service/src/chatgpt/index.ts +++ b/service/src/chatgpt/index.ts @@ -23,7 +23,7 @@ const ErrorCodeMessage: Record = { 500: '[OpenAI] 服务器繁忙,请稍后再试 | Internal Server Error', } -const timeoutMs: number = !isNaN(+process.env.TIMEOUT_MS) ? +process.env.TIMEOUT_MS : 30 * 1000 +const timeoutMs: number = !isNaN(+process.env.TIMEOUT_MS) ? +process.env.TIMEOUT_MS : 100 * 1000 const disableDebug: boolean = process.env.OPENAI_API_DISABLE_DEBUG === 'true' let apiModel: ApiModel