diff options
| author | Dhravya <[email protected]> | 2024-06-22 17:43:16 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-22 17:43:16 -0500 |
| commit | a2f8a27e771f59380719f2e9997cd926d5d8e83e (patch) | |
| tree | 58da4ba7bbfc8885d01d79ba01e173f1d1f7906e /apps/web/app/api | |
| parent | added multi-turn conversations (diff) | |
| download | supermemory-a2f8a27e771f59380719f2e9997cd926d5d8e83e.tar.xz supermemory-a2f8a27e771f59380719f2e9997cd926d5d8e83e.zip | |
addeed chathistory functionality
Diffstat (limited to 'apps/web/app/api')
| -rw-r--r-- | apps/web/app/api/chat/route.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/web/app/api/chat/route.ts b/apps/web/app/api/chat/route.ts index c19ce92b..25b1845b 100644 --- a/apps/web/app/api/chat/route.ts +++ b/apps/web/app/api/chat/route.ts @@ -1,9 +1,5 @@ import { type NextRequest } from "next/server"; -import { - ChatHistory, - ChatHistoryZod, - convertChatHistoryList, -} from "@repo/shared-types"; +import { ChatHistoryZod, convertChatHistoryList } from "@repo/shared-types"; import { ensureAuth } from "../ensureAuth"; import { z } from "zod"; @@ -49,6 +45,8 @@ export async function POST(req: NextRequest) { ); } + console.log("validated.data.chatHistory", validated.data.chatHistory); + const modelCompatible = await convertChatHistoryList( validated.data.chatHistory, ); |