Skip to content

Commit 733299e

Browse files
authored
revert(core): "applied secrets_map in load to plain string values" (#33913)
Reverts #33678 Breaking API change
1 parent e1adf78 commit 733299e

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

libs/core/langchain_core/load/load.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ def _load(obj: Any) -> Any:
265265
return reviver(loaded_obj)
266266
if isinstance(obj, list):
267267
return [_load(o) for o in obj]
268-
if isinstance(obj, str) and obj in reviver.secrets_map:
269-
return reviver.secrets_map[obj]
270268
return obj
271269

272270
return _load(obj)

libs/core/tests/unit_tests/load/test_load.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)