test_chat_models_standard.py — langchain Source File
Architecture documentation for test_chat_models_standard.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d721644b_990e_481d_4c5c_ed5b8050621c["test_chat_models_standard.py"] 120e2591_3e15_b895_72b6_cb26195e40a6["pytest"] d721644b_990e_481d_4c5c_ed5b8050621c --> 120e2591_3e15_b895_72b6_cb26195e40a6 ba43b74d_3099_7e1c_aac3_cf594720469e["langchain_core.language_models"] d721644b_990e_481d_4c5c_ed5b8050621c --> ba43b74d_3099_7e1c_aac3_cf594720469e 8f882798_3f47_fa1f_5253_3b7193f357a9["langchain_tests.integration_tests"] d721644b_990e_481d_4c5c_ed5b8050621c --> 8f882798_3f47_fa1f_5253_3b7193f357a9 0a64b352_1be7_5fff_8155_512d479e612f["langchain_perplexity"] d721644b_990e_481d_4c5c_ed5b8050621c --> 0a64b352_1be7_5fff_8155_512d479e612f style d721644b_990e_481d_4c5c_ed5b8050621c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""Standard LangChain interface tests."""
import pytest
from langchain_core.language_models import BaseChatModel
from langchain_tests.integration_tests import ChatModelIntegrationTests
from langchain_perplexity import ChatPerplexity
class TestPerplexityStandard(ChatModelIntegrationTests):
@property
def chat_model_class(self) -> type[BaseChatModel]:
return ChatPerplexity
@property
def chat_model_params(self) -> dict:
return {"model": "sonar"}
@pytest.mark.xfail(reason="TODO: handle in integration.")
def test_double_messages_conversation(self, model: BaseChatModel) -> None:
super().test_double_messages_conversation(model)
@pytest.mark.xfail(reason="Raises 400: Custom stop words not supported.")
def test_stop_sequence(self, model: BaseChatModel) -> None:
super().test_stop_sequence(model)
# TODO, API regressed for some reason after 2025-04-15
Domain
Subdomains
Classes
Dependencies
- langchain_core.language_models
- langchain_perplexity
- langchain_tests.integration_tests
- pytest
Source
Frequently Asked Questions
What does test_chat_models_standard.py do?
test_chat_models_standard.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, MessageSchema subdomain.
What does test_chat_models_standard.py depend on?
test_chat_models_standard.py imports 4 module(s): langchain_core.language_models, langchain_perplexity, langchain_tests.integration_tests, pytest.
Where is test_chat_models_standard.py in the architecture?
test_chat_models_standard.py is located at libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/partners/perplexity/tests/integration_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free