An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Fix guest rate limit not showing auth dialog
Yoshiki Miuraf401c9b2a1e8
diff --git a/components/chat.tsx b/components/chat.tsxindex 30e47c9f..f4367c65 100644--- a/components/chat.tsx+++ b/components/chat.tsx@@ -138,7 +138,8 @@ export function Chat({const isAuthError =error.message?.includes('401') ||errorMessage.includes('unauthorized') ||- errorMessage.includes('authentication required')+ errorMessage.includes('authentication required') ||+ errorMessage.includes('sign in to continue')if (isRateLimit) {// Try to parse JSON error response for quality mode rate limit