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

Method ActiveProfile

internal/config/config.go:331–333  ·  view source on GitHub ↗

ActiveProfile returns the selected profile. Bootstrap guarantees c.Active names a real one, so this is a straight map lookup.

()

Source from the content-addressed store, hash-verified

329
330// ActiveProfile returns the selected profile. Bootstrap guarantees c.Active
331// names a real one, so this is a straight map lookup.
332func (c *Config) ActiveProfile() *Profile {
333 return c.Models[c.Active]
334}
335
336// ActiveURL is the endpoint every dial-out uses: the runtime override if set,

Callers 15

ActiveURLMethod · 0.95
NewFunction · 0.80
activeContextSizeMethod · 0.80
InitMethod · 0.80
buildMessagesMethod · 0.80
newTestModelFunction · 0.80
runTurnFunction · 0.80
TestViewHandlesZeroWidthFunction · 0.80

Calls

no outgoing calls