Skip to content

Commit

Permalink
now it will maybe start the endpoint if the endpoint is off using fai…
Browse files Browse the repository at this point in the history
…led msg then retry
  • Loading branch information
EnderPoint07 committed Oct 22, 2023
1 parent 9437df9 commit 744efa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function sendUserMessageToAI(userMessage) {
}
})
.catch(error => {
console.error('Error:', error);
console.error('Error:', error, "\n\n RETRYING REQUEST");
sendUserMessageToAI(userMessage) // retry
});
}

Expand Down

0 comments on commit 744efa7

Please sign in to comment.