Skip to content

An AI-powered search engine with a generative UI

style: apply linting and formatting fixes

Yoshiki Miuraa43c8ddb9c12
diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts
index ed9cd374..3b28644b 100644
--- a/app/api/chat/route.ts
+++ b/app/api/chat/route.ts
@@ -1,5 +1,5 @@
-import { cookies } from 'next/headers'
import { revalidateTag } from 'next/cache'
+import { cookies } from 'next/headers'
import { getCurrentUserId } from '@/lib/auth/get-current-user'
import { createChatStreamResponse } from '@/lib/streaming/create-chat-stream-response'
diff --git a/lib/actions/chat.ts b/lib/actions/chat.ts
index 55f28493..24e20aff 100644
--- a/lib/actions/chat.ts
+++ b/lib/actions/chat.ts
@@ -14,7 +14,10 @@ import { getTextFromParts } from '@/lib/utils/message-utils'
const DEFAULT_CHAT_TITLE = 'Untitled'
// Create cached version of loadChatWithMessages with dynamic tags per chat
-const getCachedChatWithMessages = (chatId: string, requestingUserId?: string) => {
+const getCachedChatWithMessages = (
+ chatId: string,
+ requestingUserId?: string
+) => {
// Create a unique cache instance for each chat
const cachedFunction = unstable_cache(
async () => {
@@ -26,7 +29,7 @@ const getCachedChatWithMessages = (chatId: string, requestingUserId?: string) =>
revalidate: 60 // revalidate after 60 seconds
}
)
-
+
return cachedFunction()
}