Fix types for build

This commit is contained in:
Jared Palmer 2023-05-22 10:33:40 -04:00
parent c28e79e9df
commit 29ddc26bbf

View file

@ -4,7 +4,8 @@ import { prisma } from "@/lib/prisma";
export const POST = auth(async function POST(req: Request) { export const POST = auth(async function POST(req: Request) {
const json = await req.json(); 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({ const res = await openai.createChatCompletion({
model: "gpt-3.5-turbo", model: "gpt-3.5-turbo",