mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
22 lines
565 B
Python
22 lines
565 B
Python
|
"""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",
|
||
|
}
|