From ac3091c0136995d6cb4920ab088ca9fe91bd247c Mon Sep 17 00:00:00 2001 From: Pedro Rodrigues Date: Wed, 18 Feb 2026 11:08:26 +0000 Subject: [PATCH] feat: add ai assistant X-Client-Info header --- apps/studio/state/ai-assistant-state.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/studio/state/ai-assistant-state.tsx b/apps/studio/state/ai-assistant-state.tsx index 8c7c8534551..0703709d2ca 100644 --- a/apps/studio/state/ai-assistant-state.tsx +++ b/apps/studio/state/ai-assistant-state.tsx @@ -254,7 +254,9 @@ function createChatInstance( model: state.model, ...opts.body, }, - ...(IS_PLATFORM ? { headers: { Authorization: authorizationHeader ?? '' } } : {}), + ...(IS_PLATFORM + ? { headers: { Authorization: authorizationHeader ?? '', 'X-Client-Info': 'supabase-studio/ai-assistant' } } + : {}), } }, }),