mirror of
https://github.com/hwchase17/langchain.git
synced 2026-04-04 19:35:08 +00:00
22 lines
530 B
Python
22 lines
530 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_ai21 import ChatAI21
|
|
|
|
|
|
class TestAI21Standard(ChatModelIntegrationTests):
|
|
@pytest.fixture
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
return ChatAI21
|
|
|
|
@pytest.fixture
|
|
def chat_model_params(self) -> dict:
|
|
return {
|
|
"model": "j2-ultra",
|
|
}
|