TestPerplexityStandard Class — langchain Architecture
Architecture documentation for the TestPerplexityStandard class in test_chat_models_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 023d7460_3a4f_bbf8_5efb_2b19aa85c270["TestPerplexityStandard"] 971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"] 023d7460_3a4f_bbf8_5efb_2b19aa85c270 -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54 d23d2615_93f2_91ef_eb4d_976de92e4491["test_chat_models_standard.py"] 023d7460_3a4f_bbf8_5efb_2b19aa85c270 -->|defined in| d23d2615_93f2_91ef_eb4d_976de92e4491 ee2013fa_e1d2_48a8_374e_ab1a90efda70["chat_model_class()"] 023d7460_3a4f_bbf8_5efb_2b19aa85c270 -->|method| ee2013fa_e1d2_48a8_374e_ab1a90efda70 975d8575_8cbd_d87c_8e61_c97473d148be["chat_model_params()"] 023d7460_3a4f_bbf8_5efb_2b19aa85c270 -->|method| 975d8575_8cbd_d87c_8e61_c97473d148be 50df7896_bf17_ecfe_656c_f631cd815cba["test_double_messages_conversation()"] 023d7460_3a4f_bbf8_5efb_2b19aa85c270 -->|method| 50df7896_bf17_ecfe_656c_f631cd815cba 90851e53_22bc_c038_f126_b8702cb24bcb["test_stop_sequence()"] 023d7460_3a4f_bbf8_5efb_2b19aa85c270 -->|method| 90851e53_22bc_c038_f126_b8702cb24bcb
Relationship Graph
Source Code
libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py lines 10–27
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
Extends
Source
Frequently Asked Questions
What is the TestPerplexityStandard class?
TestPerplexityStandard is a class in the langchain codebase, defined in libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py.
Where is TestPerplexityStandard defined?
TestPerplexityStandard is defined in libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py at line 10.
What does TestPerplexityStandard extend?
TestPerplexityStandard extends ChatModelIntegrationTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free