mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
core[patch]: Remove different parent run id warning (#25683)
This commit is contained in:
@@ -953,11 +953,6 @@ class BaseCallbackManager(CallbackManagerMixin):
|
|||||||
# ['tag2', 'tag1']
|
# ['tag2', 'tag1']
|
||||||
|
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
if self.parent_run_id != other.parent_run_id:
|
|
||||||
_LOGGER.warning(
|
|
||||||
f"{self.__class__.__name__}.merge(): Parent run IDs do not match."
|
|
||||||
" Using the parent run ID of the first callback manager."
|
|
||||||
)
|
|
||||||
manager = self.__class__(
|
manager = self.__class__(
|
||||||
parent_run_id=self.parent_run_id or other.parent_run_id,
|
parent_run_id=self.parent_run_id or other.parent_run_id,
|
||||||
handlers=[],
|
handlers=[],
|
||||||
|
@@ -1658,11 +1658,6 @@ class CallbackManagerForChainGroup(CallbackManager):
|
|||||||
# ['tag2', 'tag1']
|
# ['tag2', 'tag1']
|
||||||
|
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
if self.parent_run_id != other.parent_run_id:
|
|
||||||
logger.warning(
|
|
||||||
f"{self.__class__.__name__}.merge(): Parent run IDs do not match."
|
|
||||||
" Using the parent run ID of the first callback manager."
|
|
||||||
)
|
|
||||||
manager = self.__class__(
|
manager = self.__class__(
|
||||||
parent_run_id=self.parent_run_id or other.parent_run_id,
|
parent_run_id=self.parent_run_id or other.parent_run_id,
|
||||||
handlers=[],
|
handlers=[],
|
||||||
@@ -2150,11 +2145,6 @@ class AsyncCallbackManagerForChainGroup(AsyncCallbackManager):
|
|||||||
# ['tag2', 'tag1']
|
# ['tag2', 'tag1']
|
||||||
|
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
if self.parent_run_id != other.parent_run_id:
|
|
||||||
logger.warning(
|
|
||||||
f"{self.__class__.__name__}.merge(): Parent run IDs do not match."
|
|
||||||
" Using the parent run ID of the first callback manager."
|
|
||||||
)
|
|
||||||
manager = self.__class__(
|
manager = self.__class__(
|
||||||
parent_run_id=self.parent_run_id or other.parent_run_id,
|
parent_run_id=self.parent_run_id or other.parent_run_id,
|
||||||
handlers=[],
|
handlers=[],
|
||||||
|
Reference in New Issue
Block a user