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 not stored for this graph (policy: none)
no outgoing calls