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

Method rebuildClient

internal/tui/slash.go:187–196  ·  view source on GitHub ↗

rebuildClient swaps in a fresh llm.Client for the now-active profile. Replacing the pointer (not mutating fields) drops the prior Client's sticky state (noReasoningEffort, keep-alive pool tied to the old URL): new endpoint, fresh slate.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

reloadConfigFromDiskMethod · 0.95
cmdModelMethod · 0.95
activateHamrpassMethod · 0.95

Calls 4

NewFunction · 0.92
ActiveProfileMethod · 0.80
ActiveURLMethod · 0.80
ResolvedKeyMethod · 0.80

Tested by

no test coverage detected