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

This commit is contained in:
Erick Friis 2024-04-16 14:55:47 -07:00 committed by GitHub
parent 22da9f5f3f
commit 6adca37eb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.