The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
dont send current table or schema if not opted in (#30793)
Saxon Fletchera92e34d7a405
diff --git a/apps/studio/pages/api/ai/sql/generate-v3.ts b/apps/studio/pages/api/ai/sql/generate-v3.tsindex e7325b0829c..55517ba1c0b 100644--- a/apps/studio/pages/api/ai/sql/generate-v3.ts+++ b/apps/studio/pages/api/ai/sql/generate-v3.ts@@ -119,8 +119,8 @@ async function handlePost(req: NextApiRequest, res: NextApiResponse) {Here are the existing database schema names you can retrieve: ${schemas}- ${schema !== undefined ? `The user is currently looking at the ${schema} schema.` : ''}- ${table !== undefined ? `The user is currently looking at the ${table} table.` : ''}+ ${schema !== undefined && includeSchemaMetadata ? `The user is currently looking at the ${schema} schema.` : ''}+ ${table !== undefined && includeSchemaMetadata ? `The user is currently looking at the ${table} table.` : ''}`,messages,tools: getTools({ projectRef, connectionString, authorization, includeSchemaMetadata }),