From 6adca37eb7869532f20f025a4ea536c840e3c1c3 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 16 Apr 2024 14:55:47 -0700 Subject: [PATCH] core: default chat/llm _identifying_params to lc_attributes (#20232) --- libs/core/langchain_core/language_models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/langchain_core/language_models/base.py b/libs/core/langchain_core/language_models/base.py index c11cf4e1b79..4941faea345 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.