--- handlers --------------------------------------------------------------- cmdModel: `/models` lists, `/models ` sets. Cycling is Tab/Shift+Tab in the popover, no separate "next" command.
(args []string)
| 139 | return m, m.confirmActive(args[0]) |
| 140 | } |
| 141 | |
| 142 | // printModelList writes the "▸ active, name, llm @ url" rollup to scroll. |
| 143 | func (m *Model) printModelList() { |
| 144 | m.appendLine(styleDim.Render("models (▸ active, /models <name> to switch):")) |
| 145 | for _, n := range m.cfg.ModelNames() { |
| 146 | mark := " " |
| 147 | if n == m.cfg.Active { |
| 148 | mark = "▸ " |
| 149 | } |
| 150 | p := m.cfg.Models[n] |
| 151 | m.appendLine(fmt.Sprintf("%s%s %s", |
| 152 | mark, n, styleDim.Render(p.LLM+" @ "+p.URL))) |
| 153 | } |
| 154 | } |
| 155 |
nothing calls this directly
no test coverage detected