@meistrari/chat-nuxt 4.6.0-rc.7 → 4.6.0-rc.8
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/module.json
CHANGED
|
@@ -342,7 +342,7 @@ export function useChat(options = {}, adapter = {}) {
|
|
|
342
342
|
if (generation !== pollGeneration)
|
|
343
343
|
return;
|
|
344
344
|
const statusCode = getChatApiErrorStatus(err);
|
|
345
|
-
const terminalError = statusCode === 501 || statusCode !== null && statusCode >= 400 && statusCode < 500 && statusCode !== 408 && statusCode !== 429;
|
|
345
|
+
const terminalError = statusCode === 501 || statusCode !== null && statusCode >= 400 && statusCode < 500 && statusCode !== 401 && statusCode !== 408 && statusCode !== 429;
|
|
346
346
|
consecutivePollFailures++;
|
|
347
347
|
pollOutageStartedAt ??= Date.now();
|
|
348
348
|
pollInterval.value = Math.min(POLL_INTERVAL_MS * 2 ** consecutivePollFailures, POLL_MAX_BACKOFF_MS);
|