mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-23 11:32:10 +00:00
22 lines
592 B
Python
22 lines
592 B
Python
"""Standard LangChain interface tests"""
|
|
|
|
from typing import Type
|
|
|
|
import pytest
|
|
from langchain_core.language_models import BaseChatModel
|
|
from langchain_standard_tests.unit_tests.chat_models import (
|
|
ChatModelUnitTests,
|
|
)
|
|
|
|
from langchain_groq import ChatGroq
|
|
|
|
|
|
class TestGroqStandard(ChatModelUnitTests):
|
|
@property
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
return ChatGroq
|
|
|
|
@pytest.mark.xfail(reason="Groq does not support tool_choice='any'")
|
|
def test_bind_tool_pydantic(self, model: BaseChatModel) -> None:
|
|
super().test_bind_tool_pydantic(model)
|