2024-04-12 01:23:13 +00:00
|
|
|
"""Standard LangChain interface tests"""
|
|
|
|
|
|
|
|
from typing import Type
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
from langchain_core.language_models import BaseChatModel
|
|
|
|
from langchain_standard_tests.integration_tests import ChatModelIntegrationTests
|
|
|
|
|
|
|
|
from langchain_groq import ChatGroq
|
|
|
|
|
|
|
|
|
2024-06-13 14:26:27 +00:00
|
|
|
class TestGroqStandard(ChatModelIntegrationTests):
|
2024-04-12 01:23:13 +00:00
|
|
|
@pytest.fixture
|
|
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
|
|
return ChatGroq
|
2024-04-23 21:14:16 +00:00
|
|
|
|
|
|
|
@pytest.mark.xfail(reason="Not yet implemented.")
|
|
|
|
def test_tool_message_histories_list_content(
|
|
|
|
self,
|
|
|
|
chat_model_class: Type[BaseChatModel],
|
|
|
|
chat_model_params: dict,
|
|
|
|
chat_model_has_tool_calling: bool,
|
|
|
|
) -> None:
|
|
|
|
super().test_tool_message_histories_list_content(
|
|
|
|
chat_model_class, chat_model_params, chat_model_has_tool_calling
|
|
|
|
)
|