MCPcopy Index your code
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// ActiveProfile returns the selected profile. Bootstrap guarantees c.Active
330// names a real one, so this is a straight map lookup.
331func (c *Config) ActiveProfile() *Profile {
332 return c.Models[c.Active]
333}
334
335// ActiveURL is the endpoint every dial-out uses: the runtime override if set,
336// else the active profile's URL. Use this over ActiveProfile().URL so

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