Skip to content

An AI-powered search engine with a generative UI

Format files after limit updates

Yoshiki Miuraa8d239bbf9dd
diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts
index 23b7096d..dd635c58 100644
--- a/app/api/chat/route.ts
+++ b/app/api/chat/route.ts
@@ -98,7 +98,9 @@ export async function POST(req: Request) {
const modelCookieStore = isGuest
? ({
get: (name: string) =>
- name === 'modelType' ? ({ value: 'speed' } as const) : cookieStore.get(name)
+ name === 'modelType'
+ ? ({ value: 'speed' } as const)
+ : cookieStore.get(name)
} as typeof cookieStore)
: cookieStore
diff --git a/components/app-sidebar.tsx b/components/app-sidebar.tsx
index c20338b7..f7739f86 100644
--- a/components/app-sidebar.tsx
+++ b/components/app-sidebar.tsx
@@ -20,11 +20,7 @@ import { ChatHistorySection } from './sidebar/chat-history-section'
import { ChatHistorySkeleton } from './sidebar/chat-history-skeleton'
import { IconLogo } from './ui/icons'
-export default function AppSidebar({
- hasUser = false
-}: {
- hasUser?: boolean
-}) {
+export default function AppSidebar({ hasUser = false }: { hasUser?: boolean }) {
return (
<Sidebar side="left" variant="sidebar" collapsible="offcanvas">
<SidebarHeader className="flex flex-row justify-between items-center">
diff --git a/components/model-type-selector.tsx b/components/model-type-selector.tsx
index 48cc9f36..9aa0222d 100644
--- a/components/model-type-selector.tsx
+++ b/components/model-type-selector.tsx
@@ -20,7 +20,11 @@ const MODEL_TYPE_OPTIONS: { value: ModelType; label: string }[] = [
{ value: 'quality', label: 'Quality' }
]
-export function ModelTypeSelector({ disabled = false }: { disabled?: boolean }) {
+export function ModelTypeSelector({
+ disabled = false
+}: {
+ disabled?: boolean
+}) {
const [value, setValue] = useState<ModelType>('speed')
const [dropdownOpen, setDropdownOpen] = useState(false)
diff --git a/lib/rate-limit/chat-limits.ts b/lib/rate-limit/chat-limits.ts
index a1961dfd..05587aa3 100644
--- a/lib/rate-limit/chat-limits.ts
+++ b/lib/rate-limit/chat-limits.ts
@@ -186,7 +186,7 @@ export async function checkAndEnforceQualityLimit(
* Returns a 429 Response if limit is exceeded, null if allowed
*/
export async function checkAndEnforceOverallChatLimit(
- userId: string,
+ userId: string
): Promise<Response | null> {
const result = await checkOverallChatLimit(userId)