From fbeabcde978d60ad0e93de18109b202e7f8d6501 Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 13 Apr 2026 11:25:34 +0200 Subject: [PATCH] fix: IndentationError in prompts.py SSE endpoint --- backend/routers/prompts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/routers/prompts.py b/backend/routers/prompts.py index ff518db..c0c8458 100644 --- a/backend/routers/prompts.py +++ b/backend/routers/prompts.py @@ -1537,7 +1537,8 @@ async def execute_unified_prompt_stream( ) # Save to ai_insights if requested (same logic as /execute) - if result['type'] == 'pipeline': + if save: + if result['type'] == 'pipeline': final_output = result.get('output', {}) if isinstance(final_output, dict) and len(final_output) == 1: content = list(final_output.values())[0]