MCPcopy Create free account
hub / github.com/codehamr/codehamr / printModelList

Method printModelList

internal/tui/slash.go:155–166  ·  view source on GitHub ↗

printModelList writes the "▸ active, name, llm @ url" rollup to scroll.

()

Source from the content-addressed store, hash-verified

153
154// printModelList writes the "▸ active, name, llm @ url" rollup to scroll.
155func (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

Callers 1

cmdModelMethod · 0.95

Calls 2

appendLineMethod · 0.95
ModelNamesMethod · 0.80

Tested by

no test coverage detected