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

Function New

internal/llm/llm.go:238–246  ·  view source on GitHub ↗

New builds a Client governed by the caller's context, not http.Client.Timeout. That timeout is end-to-end (it covers body reads) and would kill a slow but legitimate SSE stream mid-flight on slow local backends. tui.Model's turnCtx is the single cancellation source; connect-level safety (DNS/TCP) is

(base, model, token string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

idleTimeoutFromEnvFunction · 0.85