Skip to content

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

fix(sql-editor): put ai title gen behind feature/hipaa flags

Greg Richardson86a5ef8f2e82
diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/studio/components/interfaces/SQLEditor/SQLEditor.tsx
index d065b427dfb..da0d3f21426 100644
--- a/studio/components/interfaces/SQLEditor/SQLEditor.tsx
+++ b/studio/components/interfaces/SQLEditor/SQLEditor.tsx
@@ -222,7 +222,11 @@ const SQLEditor = () => {
return
}
- if (snippet?.snippet.name === untitledSnippetTitle) {
+ if (
+ supabaseAIEnabled &&
+ !isHipaaSubscription &&
+ snippet?.snippet.name === untitledSnippetTitle
+ ) {
// Intentionally don't await title gen (lazy)
setAiTitle(id, sql)
}