From 3d6f7f19a29242620ebf2fad5d88836e791762a1 Mon Sep 17 00:00:00 2001 From: Divyansh2992 <149261675+Divyansh2992@users.noreply.github.com> Date: Wed, 25 Mar 2026 13:47:12 +0530 Subject: [PATCH] fix: update Google AI endpoint from v1beta2 to v1beta Signed-off-by: Divyansh2992 <149261675+Divyansh2992@users.noreply.github.com> --- src/components/AIConfigPopup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AIConfigPopup.tsx b/src/components/AIConfigPopup.tsx index 6a4eae61..f80041f4 100644 --- a/src/components/AIConfigPopup.tsx +++ b/src/components/AIConfigPopup.tsx @@ -192,7 +192,7 @@ const AIConfigPopup = ({ isOpen, onClose }: AIConfigPopupProps) => { case 'google': if (!apiKey) return; { - const res = await fetch('https://generativelanguage.googleapis.com/v1beta2/models', { + const res = await fetch('https://generativelanguage.googleapis.com/v1beta/models', { headers: { 'x-goog-api-key': apiKey }, signal, });