Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ yarn-error.log*
/playwright-report/
/blob-report/
/playwright/*

next-env.d.ts
8 changes: 4 additions & 4 deletions app/(chat)/api/chat/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { checkBotId } from "botid/server";
import { geolocation, ipAddress } from "@vercel/functions";
import {
convertToModelMessages,
Expand All @@ -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";
Expand Down Expand Up @@ -185,7 +185,7 @@ export async function POST(request: Request) {
});

dataStream.merge(
result.toUIMessageStream({ sendReasoning: isReasoningModel }),
result.toUIMessageStream({ sendReasoning: isReasoningModel })
);

if (titlePromise) {
Expand Down Expand Up @@ -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.";
Expand Down
3 changes: 3 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -81,6 +83,7 @@ export default function RootLayout({
<Toaster position="top-center" />
<SessionProvider>{children}</SessionProvider>
</ThemeProvider>
<Analytics />
</body>
</html>
);
Expand Down
10 changes: 3 additions & 7 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
},
"files": {
"includes": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"!node_modules",
"!.next",
"!ai-sdk",
"**/*",
"!components/ai-elements",
"!components/elements",
"!components/ui",
"!lib/utils.ts",
"!hooks/use-mobile.ts"
Expand Down
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
Expand Down
147 changes: 0 additions & 147 deletions components/ai-elements/artifact.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions components/ai-elements/canvas.tsx

This file was deleted.

Loading
Loading