From ac52cd7dbef6ca4c0b286713d3f1b80b9eed18b6 Mon Sep 17 00:00:00 2001 From: daitaodelaowang <84396759+daitaodelaowang@users.noreply.github.com> Date: Thu, 27 Mar 2025 14:22:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dglm4=E6=8C=87=E4=BB=A4bad?= =?UTF-8?q?=20request=20(#780)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ChatGLM4Client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/ChatGLM4Client.js b/client/ChatGLM4Client.js index 8f6314a..a6937f3 100644 --- a/client/ChatGLM4Client.js +++ b/client/ChatGLM4Client.js @@ -88,7 +88,11 @@ export class ChatGLM4Client extends BaseClient { authorization: `Bearer ${this._accessToken}`, 'content-type': 'application/json', referer: 'https://www.chatglm.cn/main/alltoolsdetail', - origin: 'https://www.chatglm.cn' + origin: 'https://www.chatglm.cn', + 'X-App-Platform': 'pc', + 'X-App-Version': '0.0.1', + 'App-Name': 'chatglm', + Host: 'chatglm.cn' }, referrer: 'https://www.chatglm.cn/main/alltoolsdetail', timeout: 60000