From a83740424897ac80782fbedc78abcc75b36e7312 Mon Sep 17 00:00:00 2001 From: Alex Hancock Date: Fri, 28 Mar 2025 16:57:29 -0400 Subject: [PATCH] chore: Remove unused agent/utils.tsx (#1912) --- ui/desktop/src/agent/utils.tsx | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 ui/desktop/src/agent/utils.tsx diff --git a/ui/desktop/src/agent/utils.tsx b/ui/desktop/src/agent/utils.tsx deleted file mode 100644 index 26dfd64a..00000000 --- a/ui/desktop/src/agent/utils.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { getApiUrl, getSecretKey } from '../config'; - -export async function initializeAgent(model: string, provider: string) { - console.log('fetching...', provider, model); - const response = await fetch(getApiUrl('/agent'), { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'X-Secret-Key': getSecretKey(), - }, - body: JSON.stringify({ - provider: provider.toLowerCase().replace(/ /g, '_'), - model: model, - }), - }); - return response; -}