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

Method cmdModel

internal/tui/slash.go:141–152  ·  view source on GitHub ↗

--- handlers --------------------------------------------------------------- cmdModel: `/models` lists, `/models ` sets. Cycling is Tab/Shift+Tab in the popover, no separate "next" command.

(args []string)

Source from the content-addressed store, hash-verified

139 return m, m.confirmActive(args[0])
140}
141
142// printModelList writes the "▸ active, name, llm @ url" rollup to scroll.
143func (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

Callers

nothing calls this directly

Calls 6

printModelListMethod · 0.95
appendLineMethod · 0.95
rebuildClientMethod · 0.95
confirmActiveMethod · 0.95
SetActiveMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected