From 552154af71bf502474e32461d819ed43f214c75c Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Fri, 22 May 2026 12:33:21 -0400 Subject: [PATCH] fix: mention configurable timeout env vars in Ollama stream stall error (#9246) Signed-off-by: Douwe Osinga Co-authored-by: Douwe Osinga Co-authored-by: Jack Amadeo --- crates/goose/src/providers/ollama.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/goose/src/providers/ollama.rs b/crates/goose/src/providers/ollama.rs index 049e6a24ee..f03afa209d 100644 --- a/crates/goose/src/providers/ollama.rs +++ b/crates/goose/src/providers/ollama.rs @@ -435,7 +435,9 @@ fn with_line_timeout( Err::<(), anyhow::Error>(anyhow::anyhow!( "Ollama stream stalled: no data received for {}s. \ This may indicate the model is overwhelmed by the request payload. \ - Try a smaller model or reduce the number of tools.", + Try a smaller model, reduce the number of tools, or increase the \ + timeout via OLLAMA_STREAM_TIMEOUT, GOOSE_STREAM_TIMEOUT, or \ + OLLAMA_TIMEOUT in your config.", timeout_secs ))?; }