MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / cmdModel

Function cmdModel

commands.go:152–167  ·  view source on GitHub ↗
(args string)

Source from the content-addressed store, hash-verified

150}
151
152func cmdModel(args string) {
153 kind := ProviderKind(rootAgent.Provider)
154 if args == "" {
155 fmt.Printf("current: %s %s\n", ui.Cyan(rootAgent.Provider.Model()), ui.Dimmed("("+kind+")"))
156 if models, ok := knownModels[kind]; ok {
157 fmt.Println(ui.Dimmed("suggestions:"))
158 for _, m := range models {
159 fmt.Printf(" %s\n", m)
160 }
161 }
162 fmt.Println(ui.Dimmed("(or pass any model id — validated on next call)"))
163 return
164 }
165 rootAgent.Provider.SetModel(args)
166 fmt.Printf("model: %s\n", ui.Cyan(args))
167}
168
169func cmdProvider(args string) {
170 if args == "" {

Callers

nothing calls this directly

Calls 5

CyanFunction · 0.92
DimmedFunction · 0.92
ProviderKindFunction · 0.85
ModelMethod · 0.65
SetModelMethod · 0.65

Tested by

no test coverage detected