Enha: flag to pass model name
This commit is contained in:
2
bot.go
2
bot.go
@@ -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)
|
||||
|
||||
@@ -22,4 +22,5 @@ go run . -cli -msg "$TASK"
|
||||
|
||||
echo ""
|
||||
echo "=== Done ==="
|
||||
cp "$LOG_FILE" "$SCRIPT_DIR/latest_run.log"
|
||||
echo "Log file: $LOG_FILE"
|
||||
|
||||
@@ -17,9 +17,11 @@ echo "=== Running setup ==="
|
||||
echo ""
|
||||
echo "=== Running task ==="
|
||||
TASK=$(cat "$SCRIPT_DIR/task.txt")
|
||||
LMODEL=${LMODEL:-gemma-4-31B-it-Q4_K_M}
|
||||
cd /home/grail/projects/plays/goplays/gf-lt
|
||||
go run . -cli -msg "$TASK"
|
||||
go run . -cli -msg "$TASK" -model "$LMODEL"
|
||||
|
||||
echo ""
|
||||
echo "=== Done ==="
|
||||
cp "$LOG_FILE" "$SCRIPT_DIR/latest_run.log"
|
||||
echo "Log file: $LOG_FILE"
|
||||
|
||||
Reference in New Issue
Block a user