mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
Update libs/langchain/langchain/schema/runnable/base.py
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
This commit is contained in:
parent
c326751085
commit
da18e177f1
@ -1444,6 +1444,8 @@ class RunnableLambda(Runnable[Input, Output]):
|
||||
if hasattr(self, "afunc"):
|
||||
return await self._acall_with_config(self._ainvoke, input, config)
|
||||
else:
|
||||
# Delegating to super implementation of ainvoke.
|
||||
# Uses asyncio executor to run the sync version (invoke)
|
||||
return await super().ainvoke(input, config)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user