The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix filtering issue (#38613)
Saxon Fletcherb3a687e7a43c
diff --git a/apps/studio/lib/ai/tools/fallback-tools.ts b/apps/studio/lib/ai/tools/fallback-tools.tsindex 4b6783d1a6b..cb59c733c91 100644--- a/apps/studio/lib/ai/tools/fallback-tools.ts+++ b/apps/studio/lib/ai/tools/fallback-tools.ts@@ -370,8 +370,10 @@ export const getFallbackTools = ({): []+ const dataArray = Array.isArray(data) ? data : []+// Filter functions by requested schemas- const filteredFunctions = data.filter((func) => schemas.includes(func.schema))+ const filteredFunctions = dataArray.filter((func) => schemas.includes(func.schema))const formattedFunctions = filteredFunctions.map(