community[patch]: Release 0.2.11 (#24989)

This commit is contained in:
Bagatur
2024-08-02 13:08:44 -07:00
committed by GitHub
parent c2538e7834
commit 8e2316b8c2
12 changed files with 540 additions and 561 deletions

View File

@@ -38,7 +38,7 @@ class Match(Enum):
return isinstance(value, float)
elif template is cls.ObjectWildcard:
return True
elif type(value) != type(template):
elif type(value) is not type(template):
return False
elif isinstance(value, dict):
if len(value) != len(template):

View File

@@ -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():