mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
Assign defaults in batch calls
This commit is contained in:
parent
ddcb4ff5fb
commit
6ae58da668
@ -235,7 +235,7 @@ class Runnable(Generic[Input, Output], ABC):
|
||||
)
|
||||
|
||||
return (
|
||||
config
|
||||
list(map(ensure_config, config))
|
||||
if isinstance(config, list)
|
||||
else [deepcopy(ensure_config(config)) for _ in range(length)]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user