chore: Remove unused agent/utils.tsx (#1912)

This commit is contained in:
Alex Hancock
2025-03-28 16:57:29 -04:00
committed by GitHub
parent 8542114dda
commit a837404248

View File

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