printModelList writes the "▸ active, name, llm @ url" rollup to scroll.
()
| 153 | |
| 154 | // printModelList writes the "▸ active, name, llm @ url" rollup to scroll. |
| 155 | func (m *Model) printModelList() { |
| 156 | m.appendLine(styleDim.Render("models (▸ active, /models <name> to switch):")) |
| 157 | for _, n := range m.cfg.ModelNames() { |
| 158 | mark := " " |
| 159 | if n == m.cfg.Active { |
| 160 | mark = "▸ " |
| 161 | } |
| 162 | p := m.cfg.Models[n] |
| 163 | m.appendLine(fmt.Sprintf("%s%s %s", |
| 164 | mark, n, styleDim.Render(p.LLM+" @ "+p.URL))) |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | // confirmActive emits the activation line for the active profile and returns |
| 169 | // its reachability cmd. Keyed profiles (cloud) probe: the success line is |
no test coverage detected