langchain/libs/partners/anthropic/tests/integration_tests/test_standard.py

22 lines
565 B
Python
Raw Normal View History

"""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_anthropic import ChatAnthropic
class TestAnthropicStandard(ChatModelIntegrationTests):
@pytest.fixture
def chat_model_class(self) -> Type[BaseChatModel]:
return ChatAnthropic
@pytest.fixture
def chat_model_params(self) -> dict:
return {
"model": "claude-3-haiku-20240307",
}