Fix types
This commit is contained in:
parent
1af7fb3dfc
commit
c28e79e9df
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ 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.auth);
|
console.log((req as any).auth); // todo fix types
|
||||||
|
|
||||||
const res = await openai.createChatCompletion({
|
const res = await openai.createChatCompletion({
|
||||||
model: "gpt-3.5-turbo",
|
model: "gpt-3.5-turbo",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue