Fix types for build
This commit is contained in:
parent
c28e79e9df
commit
29ddc26bbf
1 changed files with 2 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue