mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
27 lines
680 B
Python
27 lines
680 B
Python
"""Standard LangChain interface tests"""
|
|
|
|
from typing import Type
|
|
|
|
from langchain_core.language_models import BaseChatModel
|
|
from langchain_standard_tests.integration_tests import ChatModelIntegrationTests
|
|
|
|
from langchain_anthropic import ChatAnthropic
|
|
|
|
|
|
class TestAnthropicStandard(ChatModelIntegrationTests):
|
|
@property
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
return ChatAnthropic
|
|
|
|
@property
|
|
def chat_model_params(self) -> dict:
|
|
return {"model": "claude-3-haiku-20240307"}
|
|
|
|
@property
|
|
def supports_image_inputs(self) -> bool:
|
|
return True
|
|
|
|
@property
|
|
def supports_anthropic_inputs(self) -> bool:
|
|
return True
|