debug: add logging to execute_unified_prompt_stream function
All checks were successful
Deploy Development / deploy (push) Successful in 51s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 18s

This commit is contained in:
Lars 2026-04-18 08:34:35 +02:00
parent ce5b96f373
commit a5aad0da7e

View File

@ -1452,6 +1452,7 @@ async def execute_unified_prompt_stream(
save: bool = Query(False, description="Save result to ai_insights"),
session: dict = Depends(require_auth_flexible)
):
print("[EXECUTE_STREAM] Endpoint function called!") # DEBUG
"""
Execute a unified prompt with Server-Sent Events (SSE) streaming.
@ -1463,6 +1464,7 @@ async def execute_unified_prompt_stream(
Use this endpoint for long-running workflows (>30s) to avoid gateway timeouts.
"""
print(f"[EXECUTE_STREAM] session={repr(session)}") # DEBUG
profile_id = session['profile_id']
# Use default modules/timeframes (SSE doesn't support complex params)