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.cjs.js
CHANGED
|
@@ -8673,7 +8673,7 @@ const StreamedContent = ({ botData }) => {
|
|
|
8673
8673
|
errState.completed = true;
|
|
8674
8674
|
// Check if this is a user-initiated abort (should not trigger retry)
|
|
8675
8675
|
const isUserAbort = event.reason === "Network request aborted";
|
|
8676
|
-
|
|
8676
|
+
event.statusCode === 503;
|
|
8677
8677
|
if (isThinking) {
|
|
8678
8678
|
setIsThinking(false);
|
|
8679
8679
|
const endTime = Date.now();
|
|
@@ -8688,9 +8688,7 @@ const StreamedContent = ({ botData }) => {
|
|
|
8688
8688
|
if (!isUserAbort && retryCountRef.current < MAX_RETRY_COUNT) {
|
|
8689
8689
|
// Still have retries left — start countdown instead of showing final error
|
|
8690
8690
|
setStepsDone(true); // Switch to agent_response tab to show countdown
|
|
8691
|
-
const retryMessage =
|
|
8692
|
-
? "Service temporarily unavailable (503), auto re-trying..."
|
|
8693
|
-
: "The service is temporarily unavailable because of an unusual load. Please wait a moment and try again.";
|
|
8691
|
+
const retryMessage = "The service is temporarily unavailable because of an unusual load. Please wait a moment and try again.";
|
|
8694
8692
|
setContent(retryMessage);
|
|
8695
8693
|
startRetryCountdown();
|
|
8696
8694
|
}
|