mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
core: In ensure_config don't copy dunder configurable keys to metadata (#24420)
This commit is contained in:
@@ -1271,7 +1271,11 @@ async def test_with_config_metadata_passthrough(mocker: MockerFixture) -> None:
|
||||
|
||||
assert (
|
||||
fakew.with_config(tags=["a-tag"]).invoke(
|
||||
"hello", {"configurable": {"hello": "there"}, "metadata": {"bye": "now"}}
|
||||
"hello",
|
||||
{
|
||||
"configurable": {"hello": "there", "__secret_key": "nahnah"},
|
||||
"metadata": {"bye": "now"},
|
||||
},
|
||||
)
|
||||
== 5
|
||||
)
|
||||
@@ -1281,7 +1285,7 @@ async def test_with_config_metadata_passthrough(mocker: MockerFixture) -> None:
|
||||
tags=["a-tag"],
|
||||
callbacks=None,
|
||||
recursion_limit=25,
|
||||
configurable={"hello": "there"},
|
||||
configurable={"hello": "there", "__secret_key": "nahnah"},
|
||||
metadata={"hello": "there", "bye": "now"},
|
||||
),
|
||||
)
|
||||
|
Reference in New Issue
Block a user