From fb3d4bb8132a57032919d04f03b04eb766e3088d Mon Sep 17 00:00:00 2001 From: ymq Date: Sat, 8 Aug 2026 16:08:44 +0800 Subject: [PATCH] fix: stream_response expects callable not generator object --- wwwroot/api/cockpit_chat.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index 03d4cc7..a698a45 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -449,7 +449,7 @@ if action == 'send_message': ) yield json.dumps({"type":"widget","widget":final_widget}, ensure_ascii=False) + '\n' - return await stream_response(request, agent_stream(), 'application/x-ndjson') + return await stream_response(request, agent_stream, 'application/x-ndjson') elif action == 'list_messages': iteration_id = (params_kw or {}).get('iteration_id', '')