Skip to content

An AI-powered search engine with a generative UI

style: Fix code formatting with Prettier

Yoshiki Miura92dca04224c2
diff --git a/components/chat.tsx b/components/chat.tsx
index 2685ce59..4665c4c7 100644
--- a/components/chat.tsx
+++ b/components/chat.tsx
@@ -115,7 +115,11 @@ export function Chat({
if (isRateLimit) {
// Try to parse JSON error response for quality mode rate limit
- let parsedError: { error?: string; resetAt?: number; remaining?: number } = {}
+ let parsedError: {
+ error?: string
+ resetAt?: number
+ remaining?: number
+ } = {}
try {
// Extract JSON from error message if it exists
const jsonMatch = error.message?.match(/\{.*\}/)
@@ -127,7 +131,9 @@ export function Chat({
}
// Use parsed error message or fallback
- const userMessage = parsedError.error || 'You have reached your daily limit for quality mode chat requests.'
+ const userMessage =
+ parsedError.error ||
+ 'You have reached your daily limit for quality mode chat requests.'
setErrorModal({
open: true,
diff --git a/components/error-modal.tsx b/components/error-modal.tsx
index 38227e5c..a9038024 100644
--- a/components/error-modal.tsx
+++ b/components/error-modal.tsx
@@ -57,7 +57,10 @@ export function ErrorModal({
const getErrorDescription = () => {
switch (error.type) {
case 'rate-limit':
- return error.message || 'You have made too many requests. Please wait a moment before trying again.'
+ return (
+ error.message ||
+ 'You have made too many requests. Please wait a moment before trying again.'
+ )
case 'auth':
return 'You need to sign in to continue using this feature.'
case 'forbidden':