Enha: flag to pass model name

This commit is contained in:
Grail Finder
2026-04-12 09:02:32 +03:00
parent aea19a6c0d
commit 39e099cbe9
3 changed files with 6 additions and 1 deletions

2
bot.go
View File

@@ -1774,6 +1774,7 @@ func init() {
// parse flags
flag.BoolVar(&cfg.CLIMode, "cli", false, "Run in CLI mode without TUI")
flag.BoolVar(&cfg.ToolUse, "tools", true, "run with tools")
flag.StringVar(&cfg.CurrentModel, "model", "modelname", "name of the model to use")
flag.StringVar(&cliCardPath, "card", "", "Path to syscard JSON file")
flag.BoolVar(&cliContinue, "continue", false, "Continue from last chat (by agent or card)")
flag.StringVar(&cliMsg, "msg", "", "Send message and exit (one-shot mode)")
@@ -1781,6 +1782,7 @@ func init() {
if !cfg.CLIMode {
initTUI()
}
chatBody.Model = cfg.CurrentModel
go updateModelLists()
tools.InitTools(cfg, logger, store)
// tooler = tools.InitTools(cfg, logger, store)