From c36a0f9c9ca30998ebfdb4d4aeddff6dec796f65 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 19 Sep 2023 11:03:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BB=B6=E9=95=BFclaude=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guoba.support.js | 2 +- utils/claude.ai/index.js | 2 +- utils/config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/guoba.support.js b/guoba.support.js index f14c157..9e2a904 100644 --- a/guoba.support.js +++ b/guoba.support.js @@ -622,7 +622,7 @@ export function supportGuoba () { { field: 'claudeAITimeout', label: 'claude2超时时间', - bottomHelpMessage: '等待响应的超时时间,单位为秒,默认为30。如果不使用反代而是使用代理可以适当调低。', + bottomHelpMessage: '等待响应的超时时间,单位为秒,默认为120。如果不使用反代而是使用代理可以适当调低。', component: 'InputNumber' }, { diff --git a/utils/claude.ai/index.js b/utils/claude.ai/index.js index 793ed9d..2f4266c 100644 --- a/utils/claude.ai/index.js +++ b/utils/claude.ai/index.js @@ -151,7 +151,7 @@ export class ClaudeAIClient { body: JSON.stringify(body), headers: this.rawHeaders, disableRedirect: true, - timeout: Config.claudeAITimeout || 30 + timeout: Config.claudeAITimeout || 120 }, 'post') if (streamDataRes.status === 307) { throw new Error('claude.ai目前不支持你所在的地区') diff --git a/utils/config.js b/utils/config.js index c6fee9a..be31028 100644 --- a/utils/config.js +++ b/utils/config.js @@ -148,7 +148,7 @@ const defaultConfig = { claudeAIOrganizationId: '', claudeAISessionKey: '', claudeAIReverseProxy: '', - claudeAITimeout: 30, + claudeAITimeout: 120, claudeAIJA3: '772,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,27-5-65281-13-35-0-51-18-16-43-10-45-11-17513-23,29-23-24,0', claudeAIUA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36', version: 'v2.7.4'