mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +00:00
initialzie
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user