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

Function ContextWindowFromHeaders

internal/cloud/cloud.go:118–128  ·  view source on GitHub ↗

ContextWindowFromHeaders reads X-Context-Window. Returns 0 when missing, malformed, or out of sane range; the caller reads 0 as "use the fallback". Local Ollama never sets it, so it keeps its config.yaml value.

(h http.Header)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

ProbeMethod · 0.92
runMethod · 0.92

Calls

no outgoing calls

Tested by 1