Update invoke_lc_runnable to use ainvoke instead of invoke
This commit is contained in:
parent
1efa367bf9
commit
4c2126f46f
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ async def invoke_lc_runnable(
|
||||||
async for chunk in stream:
|
async for chunk in stream:
|
||||||
await socketio_service.emit_token(session_id, chunk)
|
await socketio_service.emit_token(session_id, chunk)
|
||||||
result += chunk
|
result += chunk
|
||||||
return built_object.invoke(inputs)
|
return await built_object.ainvoke(inputs)
|
||||||
|
|
||||||
|
|
||||||
async def generate_result(built_object: Any, inputs: dict, has_external_output: bool, session_id: Optional[str] = None):
|
async def generate_result(built_object: Any, inputs: dict, has_external_output: bool, session_id: Optional[str] = None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue