The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove error display temporarily (#37804)
Saxon Fletcheradfc138450c9
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsxindex 3f085b23f7d..4d4c0346ad1 100644--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx@@ -218,7 +218,6 @@ export const AIAssistant = ({ className }: AIAssistantProps) => {onFinish: handleChatFinish,})- const formattedError = tryParseJson(error?.message ?? {})const isChatLoading = chatStatus === 'submitted' || chatStatus === 'streaming'const updateMessage = useCallback(@@ -446,10 +445,6 @@ export const AIAssistant = ({ className }: AIAssistantProps) => {Sorry, I'm having trouble responding right now. If the error persists whileretrying, you may try clearing the conversation's messages and try again.</p>-- <p className="text-foreground-lighter text-xs mt-1">- Error: {formattedError.message}- </p></div></div><div className="flex items-center gap-x-2">diff --git a/apps/studio/pages/api/ai/sql/generate-v4.ts b/apps/studio/pages/api/ai/sql/generate-v4.tsindex a50a11ddc39..4603683725d 100644--- a/apps/studio/pages/api/ai/sql/generate-v4.ts+++ b/apps/studio/pages/api/ai/sql/generate-v4.ts@@ -83,7 +83,7 @@ async function handlePost(req: NextApiRequest, res: NextApiResponse) {}// [Joshen] Am also filtering out any tool calls which state is "input-streaming"// this happens when a user stops the assistant response while the tool is being called- if (msg && msg.role === 'assistant') {+ if (msg && msg.role === 'assistant' && msg.parts) {const cleanedParts = msg.parts.filter((part: any) => {return !(part.type.startsWith('tool-') && part.state === 'input-streaming')})