The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(ai): increase request body size limit (#39330)
Greg Richardsond94f1f9b3a7f
diff --git a/apps/studio/pages/api/ai/sql/generate-v4.ts b/apps/studio/pages/api/ai/sql/generate-v4.tsindex 006da3a2ccd..f57fc2d6c75 100644--- a/apps/studio/pages/api/ai/sql/generate-v4.ts+++ b/apps/studio/pages/api/ai/sql/generate-v4.ts@@ -27,7 +27,11 @@ import { executeQuery } from 'lib/api/self-hosted/query'export const maxDuration = 120export const config = {- api: { bodyParser: true },+ api: {+ bodyParser: {+ sizeLimit: '5mb',+ },+ },}async function handler(req: NextApiRequest, res: NextApiResponse) {