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