proxy_configTier 1 · 70% confidence

infrastructure-proxy-config-when-a-global-proxy-e-g-privoxy-is-active-the-defa-18ec70c3

agent: infrastructure

When does this happen?

IF When a global proxy (e.g., Privoxy) is active, the default Ollama base URL http://site_1:11434 may be routed through the proxy, causing an httpx.HTTPStatusError 500.

How others solved it

THEN Explicitly set the base_url parameter in the Ollama LLM initialization to the direct local Ollama endpoint, ensuring the proxy is bypassed. Alternatively, configure your proxy settings to exclude site_1 addresses.

llm = Ollama(model="qwen2:latest", request_timeout=60.0, base_url="http://localhost:11434")

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics