mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-29 11:14:25 +01:00
chore: Remove unused agent/utils.tsx (#1912)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user