Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(sql-editor): encourage ai debugger to create missing extensions

Greg Richardsona17fb69ed6c1
diff --git a/studio/pages/api/ai/sql/debug.ts b/studio/pages/api/ai/sql/debug.ts
index 603743c7146..1c34f5a5c08 100644
--- a/studio/pages/api/ai/sql/debug.ts
+++ b/studio/pages/api/ai/sql/debug.ts
@@ -27,7 +27,10 @@ type DebugSqlResult = typeof debugSqlSchema.T
const completionFunctions = {
debugSql: {
name: 'debugSql',
- description: 'Debugs a Postgres SQL error and modifies the SQL to fix it',
+ description: stripIndent`
+ Debugs a Postgres SQL error and modifies the SQL to fix it.
+ - Create extensions if they are missing (only for valid extensions)
+ `,
parameters: debugSqlSchema.schema,
},
}