mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
Styling
This commit is contained in:
parent
897f791940
commit
fc42726ea0
@ -1575,15 +1575,15 @@ class RunnableBinding(Serializable, Runnable[Input, Output]):
|
||||
config: Optional[Union[RunnableConfig, List[RunnableConfig]]] = None,
|
||||
**kwargs: Optional[Any],
|
||||
) -> List[Output]:
|
||||
configs = cast(
|
||||
List[RunnableConfig],
|
||||
[self._merge_config(conf) for conf in config]
|
||||
if isinstance(config, list)
|
||||
else [
|
||||
if isinstance(config, list):
|
||||
configs = cast(
|
||||
List[RunnableConfig], [self._merge_config(conf) for conf in config]
|
||||
)
|
||||
else:
|
||||
configs = [
|
||||
patch_config(self._merge_config(config), deep_copy_locals=True)
|
||||
for _ in range(len(inputs))
|
||||
],
|
||||
)
|
||||
]
|
||||
return self.bound.batch(inputs, configs, **{**self.kwargs, **kwargs})
|
||||
|
||||
async def abatch(
|
||||
|
Loading…
Reference in New Issue
Block a user