The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(sql-editor): encourage ai to provide short debug solutions
Greg Richardsond291f0258abc
diff --git a/studio/pages/api/ai/sql/debug.ts b/studio/pages/api/ai/sql/debug.tsindex 004d1110168..53a86fc8973 100644--- a/studio/pages/api/ai/sql/debug.ts+++ b/studio/pages/api/ai/sql/debug.ts@@ -16,7 +16,7 @@ const openAiKey = process.env.OPENAI_KEYconst debugSqlSchema = SchemaBuilder.emptySchema().addString('solution', {- description: 'The suggested solution for the error (as short and concise as possible).',+ description: 'A short suggested solution for the error (as concise as possible).',}).addString('sql', {description: 'The SQL rewritten to apply the solution. Includes all the original SQL.',@@ -80,6 +80,7 @@ export default async function handler(req: NextRequest) {if (!response.ok) {const errorResponse: ErrorResponse = await response.json()+ console.log({ errorResponse })console.error(`AI SQL debugging failed: ${errorResponse.error.message}`)return new Response(