Skip to content

Commit

Permalink
fix(BingAIClient.js): increase message timeout from 180 seconds to 30…
Browse files Browse the repository at this point in the history
…0 seconds
  • Loading branch information
waylaidwanderer committed May 31, 2023
1 parent f9a5b09 commit 9030094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BingAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export default class BingAIClient {
const messageTimeout = setTimeout(() => {
this.constructor.cleanupWebSocketConnection(ws);
reject(new Error('Timed out waiting for response. Try enabling debug mode to see more information.'));
}, 180 * 1000);
}, 300 * 1000);

// abort the request if the abort controller is aborted
abortController.signal.addEventListener('abort', () => {
Expand Down

0 comments on commit 9030094

Please sign in to comment.