fix: 延长claude超时时间

This commit is contained in:
ikechan8370 2023-09-19 11:03:23 +08:00
parent 77f6d2d85b
commit c36a0f9c9c
3 changed files with 3 additions and 3 deletions

View file

@ -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目前不支持你所在的地区')

View file

@ -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'