Home / Class/ TestPerplexityStandard Class — langchain Architecture

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
  e1df78a0_0131_0fd7_69bb_1064e8fd0643["TestPerplexityStandard"]
  f4b40f56_1158_0e72_1cac_d0121e4eabd8["ChatModelUnitTests"]
  e1df78a0_0131_0fd7_69bb_1064e8fd0643 -->|extends| f4b40f56_1158_0e72_1cac_d0121e4eabd8
  056ab602_194e_52ec_6ff0_9fda4c2b412b["test_chat_models_standard.py"]
  e1df78a0_0131_0fd7_69bb_1064e8fd0643 -->|defined in| 056ab602_194e_52ec_6ff0_9fda4c2b412b
  d75c41b0_5b15_9c05_01cc_39a92c4d8330["chat_model_class()"]
  e1df78a0_0131_0fd7_69bb_1064e8fd0643 -->|method| d75c41b0_5b15_9c05_01cc_39a92c4d8330
  22b19ef5_8e20_c14b_c0c8_85cbf45813ef["init_from_env_params()"]
  e1df78a0_0131_0fd7_69bb_1064e8fd0643 -->|method| 22b19ef5_8e20_c14b_c0c8_85cbf45813ef

Relationship Graph

Source Code

libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py lines 9–16

class TestPerplexityStandard(ChatModelUnitTests):
    @property
    def chat_model_class(self) -> type[BaseChatModel]:
        return ChatPerplexity

    @property
    def init_from_env_params(self) -> tuple[dict, dict, dict]:
        return ({"PPLX_API_KEY": "api_key"}, {}, {"pplx_api_key": "api_key"})

Frequently Asked Questions

What is the TestPerplexityStandard class?
TestPerplexityStandard is a class in the langchain codebase, defined in libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py.
Where is TestPerplexityStandard defined?
TestPerplexityStandard is defined in libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py at line 9.
What does TestPerplexityStandard extend?
TestPerplexityStandard extends ChatModelUnitTests.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free