fix: stream_response expects callable not generator object
This commit is contained in:
parent
406e441c75
commit
fb3d4bb813
@ -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', '')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user