mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 20:15:40 +00:00
core: default chat/llm _identifying_params to lc_attributes (#20232)
This commit is contained in:
parent
22da9f5f3f
commit
6adca37eb7
@ -298,7 +298,7 @@ class BaseLanguageModel(
|
|||||||
@property
|
@property
|
||||||
def _identifying_params(self) -> Mapping[str, Any]:
|
def _identifying_params(self) -> Mapping[str, Any]:
|
||||||
"""Get the identifying parameters."""
|
"""Get the identifying parameters."""
|
||||||
return {}
|
return self.lc_attributes
|
||||||
|
|
||||||
def get_token_ids(self, text: str) -> List[int]:
|
def get_token_ids(self, text: str) -> List[int]:
|
||||||
"""Return the ordered ids of the tokens in a text.
|
"""Return the ordered ids of the tokens in a text.
|
||||||
|
Loading…
Reference in New Issue
Block a user