mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 23:41:46 +00:00
community[patch]: Release 0.2.11 (#24989)
This commit is contained in:
@@ -6,7 +6,7 @@ from langchain_core.language_models.llms import BaseLLM
|
||||
def assert_llm_equality(llm: BaseLLM, loaded_llm: BaseLLM) -> None:
|
||||
"""Assert LLM Equality for tests."""
|
||||
# Check that they are the same type.
|
||||
assert type(llm) == type(loaded_llm)
|
||||
assert type(llm) is type(loaded_llm)
|
||||
# Client field can be session based, so hash is different despite
|
||||
# all other values being the same, so just assess all other fields
|
||||
for field in llm.__fields__.keys():
|
||||
|
Reference in New Issue
Block a user