Skip to content

Commit 483441d

Browse files
authored
pass kwargs through to loading (#863)
1 parent 8df6b68 commit 483441d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/chains/loading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def load_chain_from_config(config: dict, **kwargs: Any) -> Chain:
440440
def load_chain(path: Union[str, Path], **kwargs: Any) -> Chain:
441441
"""Unified method for loading a chain from LangChainHub or local fs."""
442442
if hub_result := try_load_from_hub(
443-
path, _load_chain_from_file, "chains", {"json", "yaml"}
443+
path, _load_chain_from_file, "chains", {"json", "yaml"}, **kwargs
444444
):
445445
return hub_result
446446
else:

0 commit comments

Comments
 (0)