mirror of
https://github.com/PinkSheep27/SBU-Hackathon.git
synced 2026-10-11 01:20:27 -04:00
fix the ai and it should be working
This commit is contained in:
@@ -23,7 +23,8 @@ export default async function handler(
|
||||
}
|
||||
|
||||
// Destructure the data sent from the frontend
|
||||
let { prompt, settings } = req.body;
|
||||
let prompt = req.body.prompt;
|
||||
const settings = req.body.settings;
|
||||
|
||||
// Basic validation
|
||||
if (!prompt || typeof prompt !== 'string') {
|
||||
|
||||
Reference in New Issue
Block a user