diff options
| author | Dhravya Shah <[email protected]> | 2024-06-22 20:38:00 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-22 20:38:00 -0500 |
| commit | 47e7528f675c187b0a771bc4040e8d8108c5ef8e (patch) | |
| tree | 0a738b7a816f7b61865558be567c88d86db238c3 /apps/web/app/api | |
| parent | delete packagelock (diff) | |
| parent | cleanup (diff) | |
| download | supermemory-47e7528f675c187b0a771bc4040e8d8108c5ef8e.tar.xz supermemory-47e7528f675c187b0a771bc4040e8d8108c5ef8e.zip | |
Merge pull request #79 from Dhravya/chathistory
addeed chathistory functionality
Diffstat (limited to 'apps/web/app/api')
| -rw-r--r-- | apps/web/app/api/chat/route.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/web/app/api/chat/route.ts b/apps/web/app/api/chat/route.ts index c19ce92b..d0e53066 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"; @@ -67,11 +63,8 @@ export async function POST(req: NextRequest) { }, ); - console.log("sourcesOnly", sourcesOnly); - if (sourcesOnly == "true") { const data = await resp.json(); - console.log("data", data); return new Response(JSON.stringify(data), { status: 200 }); } |