Skip to content

The agent engineering platform.

core: default chat/llm _identifying_params to lc_attributes (#20232)

Erick Friis6adca37eb786
diff --git a/libs/core/langchain_core/language_models/base.py b/libs/core/langchain_core/language_models/base.py
index c11cf4e1b7..4941faea34 100644
--- a/libs/core/langchain_core/language_models/base.py
+++ b/libs/core/langchain_core/language_models/base.py
@@ -298,7 +298,7 @@ class BaseLanguageModel(
@property
def _identifying_params(self) -> Mapping[str, Any]:
"""Get the identifying parameters."""
- return {}
+ return self.lc_attributes
def get_token_ids(self, text: str) -> List[int]:
"""Return the ordered ids of the tokens in a text.