fix: stream_response expects callable not generator object

This commit is contained in:
ymq 2026-08-08 16:08:44 +08:00
parent 406e441c75
commit fb3d4bb813

View File

@ -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', '')