mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 13:27:36 +00:00
standard-tests: fix default fixtures (#20520)
This commit is contained in:
parent
5acc7ba622
commit
77eba10f47
4
.github/scripts/check_diff.py
vendored
4
.github/scripts/check_diff.py
vendored
@ -53,6 +53,10 @@ if __name__ == "__main__":
|
||||
dirs_to_run["lint"].add("libs/standard-tests")
|
||||
dirs_to_run["test"].add("libs/partners/mistralai")
|
||||
dirs_to_run["test"].add("libs/partners/openai")
|
||||
dirs_to_run["test"].add("libs/partners/anthropic")
|
||||
dirs_to_run["test"].add("libs/partners/ai21")
|
||||
dirs_to_run["test"].add("libs/partners/fireworks")
|
||||
dirs_to_run["test"].add("libs/partners/groq")
|
||||
|
||||
elif file.startswith("libs/cli"):
|
||||
# todo: add cli makefile
|
||||
|
@ -33,13 +33,16 @@ class ChatModelIntegrationTests(ABC):
|
||||
def chat_model_has_tool_calling(
|
||||
self, chat_model_class: Type[BaseChatModel]
|
||||
) -> bool:
|
||||
return hasattr(chat_model_class, "bind_tools")
|
||||
return chat_model_class.bind_tools is not BaseChatModel.bind_tools
|
||||
|
||||
@pytest.fixture
|
||||
def chat_model_has_structured_output(
|
||||
self, chat_model_class: Type[BaseChatModel]
|
||||
) -> bool:
|
||||
return hasattr(chat_model_class, "with_structured_output")
|
||||
return (
|
||||
chat_model_class.with_structured_output
|
||||
is not BaseChatModel.with_structured_output
|
||||
)
|
||||
|
||||
def test_invoke(
|
||||
self, chat_model_class: Type[BaseChatModel], chat_model_params: dict
|
||||
|
Loading…
Reference in New Issue
Block a user