From 897f791940400fed3fa59922e72010cbfda99f23 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Sat, 26 Aug 2023 08:01:10 +0200 Subject: [PATCH] Remove run_id from patch --- libs/langchain/langchain/schema/runnable/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/langchain/langchain/schema/runnable/config.py b/libs/langchain/langchain/schema/runnable/config.py index 74ada6cecb..3f87f04403 100644 --- a/libs/langchain/langchain/schema/runnable/config.py +++ b/libs/langchain/langchain/schema/runnable/config.py @@ -103,13 +103,11 @@ def patch_config( if deep_copy_locals: config["_locals"] = deepcopy(config["_locals"]) if callbacks is not None: - # If we're replacing callbacks we need to unset run_name and run_id - # As those should apply only to the same run as the original callbacks + # If we're replacing callbacks we need to unset run_name + # As that should apply only to the same run as the original callbacks config["callbacks"] = callbacks if "run_name" in config: del config["run_name"] - if "run_id" in config: - del config["run_id"] if recursion_limit is not None: config["recursion_limit"] = recursion_limit if max_concurrency is not None: