The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: generate-v3 safe parse body (#36700)
Alaister Younga6b88de5f978
diff --git a/apps/studio/pages/api/ai/sql/generate-v3.ts b/apps/studio/pages/api/ai/sql/generate-v3.tsindex 487cd73fd53..81b1302fb0a 100644--- a/apps/studio/pages/api/ai/sql/generate-v3.ts+++ b/apps/studio/pages/api/ai/sql/generate-v3.ts@@ -38,7 +38,7 @@ export default wrapperasync function handlePost(req: NextApiRequest, res: NextApiResponse) {const { messages, projectRef, connectionString, includeSchemaMetadata, schema, table } =- JSON.parse(req.body)+ typeof req.body === 'string' ? JSON.parse(req.body) : req.bodyif (!projectRef) {return res.status(400).json({