--- handlers --------------------------------------------------------------- cmdModel: `/models` lists, `/models ` sets. Cycling is Tab/Shift+Tab in the popover, no separate "next" command.
(args []string)
| 139 | // cmdModel: `/models` lists, `/models <name>` sets. Cycling is Tab/Shift+Tab |
| 140 | // in the popover, no separate "next" command. |
| 141 | func (m Model) cmdModel(args []string) (tea.Model, tea.Cmd) { |
| 142 | if len(args) == 0 { |
| 143 | m.printModelList() |
| 144 | return m, nil |
| 145 | } |
| 146 | if err := m.cfg.SetActive(args[0]); err != nil { |
| 147 | m.appendLine(styleError.Render("⚠ " + err.Error())) |
| 148 | return m, nil |
| 149 | } |
| 150 | m.rebuildClient() |
| 151 | return m, m.confirmActive(args[0]) |
| 152 | } |
| 153 | |
| 154 | // printModelList writes the "▸ active, name, llm @ url" rollup to scroll. |
| 155 | func (m *Model) printModelList() { |
nothing calls this directly
no test coverage detected