fix the ai and it should be working

This commit is contained in:
Rainyy21
2025-11-09 03:03:37 -05:00
parent 507b256943
commit 3e3bff62fd
10 changed files with 160 additions and 731 deletions
+2 -1
View File
@@ -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') {