mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
Assign defaults in batch calls
This commit is contained in:
@@ -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)]
|
||||
)
|
||||
|
Reference in New Issue
Block a user