Remove comment

This commit is contained in:
Lee Robinson 2023-11-26 19:32:30 -06:00
parent 7bfa34dc55
commit a920b8845e

View file

@ -14,7 +14,7 @@ const openai = new OpenAI({
export async function POST(req: Request) { export async function POST(req: Request) {
const json = await req.json() const json = await req.json()
const { messages, previewToken } = json const { messages, previewToken } = json
const userId = (await auth())?.user.id // this doesn't seem to work getting the id const userId = (await auth())?.user.id
if (!userId) { if (!userId) {
return new Response('Unauthorized', { return new Response('Unauthorized', {