diff --git a/webview-ui/src/components/ui/hooks/useRequestyKeyInfo.ts b/webview-ui/src/components/ui/hooks/useRequestyKeyInfo.ts index 8505157a0f..dd61c17eee 100644 --- a/webview-ui/src/components/ui/hooks/useRequestyKeyInfo.ts +++ b/webview-ui/src/components/ui/hooks/useRequestyKeyInfo.ts @@ -45,7 +45,7 @@ async function getRequestyKeyInfo(baseUrl?: string, apiKey?: string) { type UseRequestyKeyInfoOptions = Omit, "queryKey" | "queryFn"> export const useRequestyKeyInfo = (baseUrl?: string, apiKey?: string, options?: UseRequestyKeyInfoOptions) => { return useQuery({ - queryKey: ["requesty-key-info", apiKey], + queryKey: ["requesty-key-info", baseUrl, apiKey], queryFn: () => getRequestyKeyInfo(baseUrl, apiKey), staleTime: 30 * 1000, // 30 seconds enabled: !!apiKey,