Fix (cli): update model list outside of tui
This commit is contained in:
5
bot.go
5
bot.go
@@ -1593,7 +1593,9 @@ func updateModelLists() {
|
|||||||
cachedModelColor.Store("green")
|
cachedModelColor.Store("green")
|
||||||
updateStatusLine()
|
updateStatusLine()
|
||||||
UpdateToolCapabilities()
|
UpdateToolCapabilities()
|
||||||
app.Draw()
|
if !cfg.CLIMode {
|
||||||
|
app.Draw() // raw?
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1779,6 +1781,7 @@ func init() {
|
|||||||
if !cfg.CLIMode {
|
if !cfg.CLIMode {
|
||||||
initTUI()
|
initTUI()
|
||||||
}
|
}
|
||||||
|
go updateModelLists()
|
||||||
tools.InitTools(cfg, logger, store)
|
tools.InitTools(cfg, logger, store)
|
||||||
// tooler = tools.InitTools(cfg, logger, store)
|
// tooler = tools.InitTools(cfg, logger, store)
|
||||||
// tooler.RegisterWindowTools(modelHasVision)
|
// tooler.RegisterWindowTools(modelHasVision)
|
||||||
|
|||||||
Reference in New Issue
Block a user