Home / File/ test_chat_models_standard.py — langchain Source File

test_chat_models_standard.py — langchain Source File

Architecture documentation for test_chat_models_standard.py, a python file in the langchain codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  62e6cb05_7aa3_8c27_ecbb_f7f1568013ba["test_chat_models_standard.py"]
  ba43b74d_3099_7e1c_aac3_cf594720469e["langchain_core.language_models"]
  62e6cb05_7aa3_8c27_ecbb_f7f1568013ba --> ba43b74d_3099_7e1c_aac3_cf594720469e
  bab3058f_1ec6_5a8a_2b11_86f46e62adb4["langchain_tests.unit_tests"]
  62e6cb05_7aa3_8c27_ecbb_f7f1568013ba --> bab3058f_1ec6_5a8a_2b11_86f46e62adb4
  0a64b352_1be7_5fff_8155_512d479e612f["langchain_perplexity"]
  62e6cb05_7aa3_8c27_ecbb_f7f1568013ba --> 0a64b352_1be7_5fff_8155_512d479e612f
  style 62e6cb05_7aa3_8c27_ecbb_f7f1568013ba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""Test Perplexity Chat API wrapper."""

from langchain_core.language_models import BaseChatModel
from langchain_tests.unit_tests import ChatModelUnitTests

from langchain_perplexity import ChatPerplexity


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"})

Subdomains

Dependencies

  • langchain_core.language_models
  • langchain_perplexity
  • langchain_tests.unit_tests

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 3 module(s): langchain_core.language_models, langchain_perplexity, langchain_tests.unit_tests.
Where is test_chat_models_standard.py in the architecture?
test_chat_models_standard.py is located at libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/partners/perplexity/tests/unit_tests).

Analyze Your Own Codebase

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

Try Supermodel Free