mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: add api3 timeout option
This commit is contained in:
parent
21485df0aa
commit
5aa90788c2
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ export class OfficialChatGPTClient {
|
||||||
referer: 'https://chat.openai.com/chat',
|
referer: 'https://chat.openai.com/chat',
|
||||||
library: 'chatgpt-plugin'
|
library: 'chatgpt-plugin'
|
||||||
},
|
},
|
||||||
referrer: 'https://chat.openai.com/chat'
|
referrer: 'https://chat.openai.com/chat',
|
||||||
|
timeout: 10000
|
||||||
}
|
}
|
||||||
logger.info('using api3 reverse proxy: ' + url)
|
logger.info('using api3 reverse proxy: ' + url)
|
||||||
let requestLib = url.startsWith('https') ? https : http
|
let requestLib = url.startsWith('https') ? https : http
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue