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

Method ModelNames

internal/config/config.go:347–349  ·  view source on GitHub ↗

ModelNames returns the profile names sorted, so the popover cycles deterministically regardless of map iteration order.

()

Source from the content-addressed store, hash-verified

345// ModelNames returns the profile names sorted, so the popover cycles
346// deterministically regardless of map iteration order.
347func (c *Config) ModelNames() []string {
348 return slices.Sorted(maps.Keys(c.Models))
349}
350
351// SetActive switches the active profile and persists. Fails on an unknown name,
352// no silent coercion. On Save failure it reverts in-memory Active so the live

Callers 4

BootstrapFunction · 0.95
slash.goFile · 0.80
printModelListMethod · 0.80

Calls

no outgoing calls

Tested by 1