mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-09 06:53:59 +00:00
standard-tests: fix default fixtures (#20520)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user