impact-chatbot 2.3.63 → 2.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8651,7 +8651,7 @@ const StreamedContent = ({ botData }) => {
|
|
|
8651
8651
|
errState.completed = true;
|
|
8652
8652
|
// Check if this is a user-initiated abort (should not trigger retry)
|
|
8653
8653
|
const isUserAbort = event.reason === "Network request aborted";
|
|
8654
|
-
|
|
8654
|
+
event.statusCode === 503;
|
|
8655
8655
|
if (isThinking) {
|
|
8656
8656
|
setIsThinking(false);
|
|
8657
8657
|
const endTime = Date.now();
|
|
@@ -8666,9 +8666,7 @@ const StreamedContent = ({ botData }) => {
|
|
|
8666
8666
|
if (!isUserAbort && retryCountRef.current < MAX_RETRY_COUNT) {
|
|
8667
8667
|
// Still have retries left — start countdown instead of showing final error
|
|
8668
8668
|
setStepsDone(true); // Switch to agent_response tab to show countdown
|
|
8669
|
-
const retryMessage =
|
|
8670
|
-
? "Service temporarily unavailable (503), auto re-trying..."
|
|
8671
|
-
: "The service is temporarily unavailable because of an unusual load. Please wait a moment and try again.";
|
|
8669
|
+
const retryMessage = "The service is temporarily unavailable because of an unusual load. Please wait a moment and try again.";
|
|
8672
8670
|
setContent(retryMessage);
|
|
8673
8671
|
startRetryCountdown();
|
|
8674
8672
|
}
|