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) }