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; -}