From c28e79e9dfba690cad2de4024631eb33214eed8b Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Mon, 22 May 2023 10:33:26 -0400 Subject: [PATCH] Fix types --- app/api/generate/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/generate/route.ts b/app/api/generate/route.ts index 3b9bb0b..d51bdda 100644 --- a/app/api/generate/route.ts +++ b/app/api/generate/route.ts @@ -4,7 +4,7 @@ import { prisma } from "@/lib/prisma"; export const POST = auth(async function POST(req: Request) { const json = await req.json(); - console.log(req.auth); + console.log((req as any).auth); // todo fix types const res = await openai.createChatCompletion({ model: "gpt-3.5-turbo",