Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phukon committed Mar 16, 2024
1 parent 577f5da commit b2f67fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/api/generate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export async function POST(req: Request): Promise<Response> {
});
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { prompt } = await req.json();

const response = await openai.chat.completions.create({
Expand All @@ -91,7 +90,6 @@ export async function POST(req: Request): Promise<Response> {
},
{
role: "user",
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
content: prompt,
},
],
Expand Down

0 comments on commit b2f67fa

Please sign in to comment.