Skip to content

An AI-powered search engine with a generative UI

Fix import sorting for chat route

Yoshiki Miura3a2a5e280490
diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts
index dd635c58..0ef623be 100644
--- a/app/api/chat/route.ts
+++ b/app/api/chat/route.ts
@@ -4,11 +4,11 @@ import { cookies } from 'next/headers'
import { loadChat } from '@/lib/actions/chat'
import { calculateConversationTurn, trackChatEvent } from '@/lib/analytics'
import { getCurrentUserId } from '@/lib/auth/get-current-user'
-import { checkAndEnforceGuestLimit } from '@/lib/rate-limit/guest-limit'
import {
- checkAndEnforceQualityLimit,
- checkAndEnforceOverallChatLimit
+ checkAndEnforceOverallChatLimit,
+ checkAndEnforceQualityLimit
} from '@/lib/rate-limit/chat-limits'
+import { checkAndEnforceGuestLimit } from '@/lib/rate-limit/guest-limit'
import { createChatStreamResponse } from '@/lib/streaming/create-chat-stream-response'
import { createEphemeralChatStreamResponse } from '@/lib/streaming/create-ephemeral-chat-stream-response'
import { SearchMode } from '@/lib/types/search'