File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed
Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1- import { streamText , convertToModelMessages , stepCountIs } from 'ai' ;
1+ import {
2+ streamText ,
3+ convertToModelMessages ,
4+ stepCountIs ,
5+ type ToolSet ,
6+ } from 'ai' ;
27import { withSupermemory } from '@supermemory/tools/ai-sdk' ;
38import { auth , type UserType } from '@/app/(auth)/auth' ;
49import { 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 ) ;
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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 ,
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}
You can’t perform that action at this time.
0 commit comments