Compare commits

..

1 Commits

Author SHA1 Message Date
0b323ed537 fix(lint): resolve prettier and dot-notation errors
Some checks failed
ci/woodpecker/push/ci Pipeline failed
2026-03-03 11:36:15 -06:00

View File

@@ -280,12 +280,9 @@ export function useChat(options: UseChatOptions = {}): UseChatReturn {
} }
// Streaming failed - check if auth error, try guest mode // Streaming failed - check if auth error, try guest mode
const isAuthError = const isAuthError = err instanceof Error &&
err instanceof Error && (err.message.includes("403") || err.message.includes("401") ||
(err.message.includes("403") || err.message.includes("auth") || err.message.includes("Forbidden"));
err.message.includes("401") ||
err.message.includes("auth") ||
err.message.includes("Forbidden"));
if (isAuthError) { if (isAuthError) {
console.warn("Auth failed, trying guest chat mode"); console.warn("Auth failed, trying guest chat mode");