fix: run command (#1971)

pull/1974/head
Timo Clasen 2025-08-15 22:58:20 +02:00 committed by GitHub
parent 314f7c56e7
commit af5f7d0887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -105,10 +105,10 @@ export const RunCommand = cmd({
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 (agent.model) return agent.model
return Provider.defaultModel()
return await Provider.defaultModel()
})()
function printEvent(color: string, type: string, title: string) {