fix: run command (#1971)
This commit is contained in:
parent
314f7c56e7
commit
af5f7d0887
1 changed files with 2 additions and 2 deletions
|
|
@ -105,10 +105,10 @@ export const RunCommand = cmd({
|
||||||
return Agent.list().then((x) => x[0])
|
return Agent.list().then((x) => x[0])
|
||||||
})()
|
})()
|
||||||
|
|
||||||
const { providerID, modelID } = await (() => {
|
const { providerID, modelID } = await (async () => {
|
||||||
if (args.model) return Provider.parseModel(args.model)
|
if (args.model) return Provider.parseModel(args.model)
|
||||||
if (agent.model) return agent.model
|
if (agent.model) return agent.model
|
||||||
return Provider.defaultModel()
|
return await Provider.defaultModel()
|
||||||
})()
|
})()
|
||||||
|
|
||||||
function printEvent(color: string, type: string, title: string) {
|
function printEvent(color: string, type: string, title: string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue