fix(lint): resolve prettier formatting in useChat.ts
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
2026-03-03 11:46:05 -06:00
parent 48d734516a
commit 1a6cf113c8

View File

@@ -280,13 +280,16 @@ export function useChat(options: UseChatOptions = {}): UseChatReturn {
}
// Streaming failed - check if auth error, try guest mode
const isAuthError = err instanceof Error &&
(err.message.includes("403") || err.message.includes("401") ||
err.message.includes("auth") || err.message.includes("Forbidden"));
const isAuthError =
err instanceof Error &&
(err.message.includes("403") ||
err.message.includes("401") ||
err.message.includes("auth") ||
err.message.includes("Forbidden"));
if (isAuthError) {
console.warn("Auth failed, trying guest chat mode");
// Try guest chat streaming
try {
await new Promise<void>((guestResolve, guestReject) => {