From 966ea2d01615d5647e715ab49a26684bc1b2b07d Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 17 Jan 2024 13:26:13 +0800 Subject: [PATCH] fix: add timeout for https --- client/ChatGLM4Client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/ChatGLM4Client.js b/client/ChatGLM4Client.js index 4c82934..8f6314a 100644 --- a/client/ChatGLM4Client.js +++ b/client/ChatGLM4Client.js @@ -90,7 +90,8 @@ export class ChatGLM4Client extends BaseClient { referer: 'https://www.chatglm.cn/main/alltoolsdetail', origin: 'https://www.chatglm.cn' }, - referrer: 'https://www.chatglm.cn/main/alltoolsdetail' + referrer: 'https://www.chatglm.cn/main/alltoolsdetail', + timeout: 60000 } const req = https.request(BASEURL, option, (res) => { statusCode = res.statusCode