Remove comment
This commit is contained in:
parent
7bfa34dc55
commit
a920b8845e
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ const openai = new OpenAI({
|
|||
export async function POST(req: Request) {
|
||||
const json = await req.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) {
|
||||
return new Response('Unauthorized', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue