Skip to content

Commit

Permalink
fix: add api3 timeout option
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed May 15, 2024
1 parent 21485df commit 5aa9078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export class OfficialChatGPTClient {
referer: 'https://chat.openai.com/chat',
library: 'chatgpt-plugin'
},
referrer: 'https://chat.openai.com/chat'
referrer: 'https://chat.openai.com/chat',
timeout: 10000
}
logger.info('using api3 reverse proxy: ' + url)
let requestLib = url.startsWith('https') ? https : http
Expand Down

0 comments on commit 5aa9078

Please sign in to comment.