diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1d57a670b7..809a353d6b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -21,5 +21,5 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- - name: Run lint
- run: pnpm lint
+ - name: Run check
+ run: pnpm check
diff --git a/.gitignore b/.gitignore
index 864e97de91..05bfb89a1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,5 @@ yarn-error.log*
/playwright-report/
/blob-report/
/playwright/*
+
+next-env.d.ts
\ No newline at end of file
diff --git a/app/(chat)/api/chat/route.ts b/app/(chat)/api/chat/route.ts
index 1b936ccb5f..cf4138fd07 100644
--- a/app/(chat)/api/chat/route.ts
+++ b/app/(chat)/api/chat/route.ts
@@ -1,4 +1,3 @@
-import { checkBotId } from "botid/server";
import { geolocation, ipAddress } from "@vercel/functions";
import {
convertToModelMessages,
@@ -8,12 +7,13 @@ import {
stepCountIs,
streamText,
} from "ai";
+import { checkBotId } from "botid/server";
import { after } from "next/server";
import { createResumableStreamContext } from "resumable-stream";
import { auth, type UserType } from "@/app/(auth)/auth";
import { entitlementsByUserType } from "@/lib/ai/entitlements";
-import { type RequestHints, systemPrompt } from "@/lib/ai/prompts";
import { allowedModelIds } from "@/lib/ai/models";
+import { type RequestHints, systemPrompt } from "@/lib/ai/prompts";
import { getLanguageModel } from "@/lib/ai/providers";
import { createDocument } from "@/lib/ai/tools/create-document";
import { getWeather } from "@/lib/ai/tools/get-weather";
@@ -185,7 +185,7 @@ export async function POST(request: Request) {
});
dataStream.merge(
- result.toUIMessageStream({ sendReasoning: isReasoningModel }),
+ result.toUIMessageStream({ sendReasoning: isReasoningModel })
);
if (titlePromise) {
@@ -236,7 +236,7 @@ export async function POST(request: Request) {
if (
error instanceof Error &&
error.message?.includes(
- "AI Gateway requires a valid credit card on file to service requests",
+ "AI Gateway requires a valid credit card on file to service requests"
)
) {
return "AI Gateway requires a valid credit card on file to service requests. Please visit https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Fmodal%3Dadd-credit-card to add a card and unlock your free credits.";
diff --git a/app/layout.tsx b/app/layout.tsx
index 66db5da925..3179bac86f 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,7 +1,9 @@
+import { Analytics } from "@vercel/analytics/next";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { Toaster } from "sonner";
import { ThemeProvider } from "@/components/theme-provider";
+import "katex/dist/katex.min.css";
import "./globals.css";
import { SessionProvider } from "next-auth/react";
@@ -81,6 +83,7 @@ export default function RootLayout({
{children}
+