mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-11 23:40:24 +00:00
27 lines
854 B
Python
27 lines
854 B
Python
"""Test the standard tests on the custom chat model in the docs."""
|
|
|
|
from langchain_tests.integration_tests import ChatModelIntegrationTests
|
|
from langchain_tests.unit_tests import ChatModelUnitTests
|
|
|
|
from .custom_chat_model import ChatParrotLink
|
|
|
|
|
|
class TestChatParrotLinkUnit(ChatModelUnitTests):
|
|
@property
|
|
def chat_model_class(self) -> type[ChatParrotLink]:
|
|
return ChatParrotLink
|
|
|
|
@property
|
|
def chat_model_params(self) -> dict:
|
|
return {"model": "bird-brain-001", "temperature": 0, "parrot_buffer_length": 50}
|
|
|
|
|
|
class TestChatParrotLinkIntegration(ChatModelIntegrationTests):
|
|
@property
|
|
def chat_model_class(self) -> type[ChatParrotLink]:
|
|
return ChatParrotLink
|
|
|
|
@property
|
|
def chat_model_params(self) -> dict:
|
|
return {"model": "bird-brain-001", "temperature": 0, "parrot_buffer_length": 50}
|