initialzie

This commit is contained in:
Dax Raad
2025-06-03 12:38:48 -04:00
parent fae49aaf88
commit e5b06a2d95
6 changed files with 113 additions and 9 deletions

View File

@@ -141,6 +141,17 @@ export namespace Provider {
}
}
export async function defaultModel() {
const [provider] = await active().then((val) => val.values().toArray())
if (!provider) throw new Error("no providers found")
const model = provider.models[0]
if (!model) throw new Error("no models found")
return {
providerID: provider.id,
modelID: model.id,
}
}
const TOOLS = [
BashTool,
EditTool,