Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Dec 29, 2023
1 parent f7313ad commit 9bb1fbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/langchain/langchain/chains/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ async def _acall(
A dict of named outputs. Should contain all outputs specified in
`Chain.output_keys`.
"""
return await run_in_executor(None, self._call, inputs, run_manager)
return await run_in_executor(
None, self._call, inputs, run_manager.get_sync() if run_manager else None
)

def __call__(
self,
Expand Down

0 comments on commit 9bb1fbc

Please sign in to comment.