From 6e2688f5baaf1c0147c1ca0801c67bb3379f92eb Mon Sep 17 00:00:00 2001 From: limbicnation Date: Mon, 16 Feb 2026 05:49:15 +0100 Subject: [PATCH] fix: replace blocking ollama.generate() with streaming to eliminate 120s timeout errors Switch to streamed generation with per-chunk timeout enforcement and ComfyUI ProgressBar integration. Add user-configurable timeout slider (30-600s), cold-start detection via ollama.ps(), and graceful fallback to subprocess. Bump version to 1.1.6. --- nodes/prompt_generator_node.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nodes/prompt_generator_node.py b/nodes/prompt_generator_node.py index 0778a78..e6386be 100644 --- a/nodes/prompt_generator_node.py +++ b/nodes/prompt_generator_node.py @@ -226,8 +226,6 @@ Format the response as a single, detailed sci-fi prompt.""", Fetch available Ollama models with caching. Prioritizes LoRA-enhanced models (containing 'lora', 'limbicnation', 'fine'). """ - import time - # Cache for 60 seconds if cls._cached_models and (time.time() - cls._cache_time) < 60: return cls._cached_models