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