mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +00:00
25 lines
703 B
Python
25 lines
703 B
Python
"""Standard LangChain interface tests"""
|
|
|
|
from typing import Type
|
|
|
|
import pytest
|
|
from langchain_core.language_models import BaseChatModel
|
|
from langchain_tests.unit_tests import ChatModelUnitTests
|
|
|
|
from langchain_community.chat_models.litellm import ChatLiteLLM
|
|
|
|
|
|
@pytest.mark.requires("litellm")
|
|
class TestLiteLLMStandard(ChatModelUnitTests):
|
|
@property
|
|
def chat_model_class(self) -> Type[BaseChatModel]:
|
|
return ChatLiteLLM
|
|
|
|
@property
|
|
def chat_model_params(self) -> dict:
|
|
return {"api_key": "test_api_key"}
|
|
|
|
@pytest.mark.xfail(reason="Not yet implemented.")
|
|
def test_standard_params(self, model: BaseChatModel) -> None:
|
|
super().test_standard_params(model)
|