Skip to content

Commit cf0e073

Browse files
committed
fix: everyting
1 parent c118f2c commit cf0e073

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

app/(chat)/api/chat/route.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { streamText, convertToModelMessages, stepCountIs } from 'ai';
1+
import {
2+
streamText,
3+
convertToModelMessages,
4+
stepCountIs,
5+
type ToolSet,
6+
} from 'ai';
27
import { withSupermemory } from '@supermemory/tools/ai-sdk';
38
import { auth, type UserType } from '@/app/(auth)/auth';
49
import { type RequestHints, systemPrompt } from '@/lib/ai/prompts';
@@ -213,7 +218,7 @@ export async function POST(request: Request) {
213218
const toolsConfig = {
214219
searchMemories: memoryTools.searchMemories,
215220
webSearch: webSearchTool,
216-
};
221+
} as ToolSet;
217222

218223
// Log what messages we're sending to AI SDK
219224
const convertedMessages = convertToModelMessages(messages as any);

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/dev/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

tsconfig.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -11,23 +15,28 @@
1115
"moduleResolution": "bundler",
1216
"resolveJsonModule": true,
1317
"isolatedModules": true,
14-
"jsx": "preserve",
18+
"jsx": "react-jsx",
1519
"incremental": true,
1620
"plugins": [
1721
{
1822
"name": "next"
1923
}
2024
],
2125
"paths": {
22-
"@/*": ["./*"]
26+
"@/*": [
27+
"./*"
28+
]
2329
}
2430
},
2531
"include": [
2632
"next-env.d.ts",
2733
"**/*.ts",
2834
"**/*.tsx",
2935
".next/types/**/*.ts",
30-
"next.config.js"
36+
"next.config.js",
37+
".next/dev/types/**/*.ts"
3138
],
32-
"exclude": ["node_modules"]
39+
"exclude": [
40+
"node_modules"
41+
]
3342
}

0 commit comments

Comments
 (0)