2024-04-12 01:23:13 +00:00
|
|
|
"""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):
|
2024-06-17 20:37:41 +00:00
|
|
|
@property
|
2024-04-12 01:23:13 +00:00
|
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
|
|
return ChatAnthropic
|
|
|
|
|
2024-06-17 20:37:41 +00:00
|
|
|
@property
|
2024-04-12 01:23:13 +00:00
|
|
|
def chat_model_params(self) -> dict:
|
2024-06-17 20:37:41 +00:00
|
|
|
return {"model": "claude-3-haiku-20240307"}
|