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 569dc75d_2e97_e981_36ef_1dd9bcdc0ad8["test_chat_models_standard.py"] ba43b74d_3099_7e1c_aac3_cf594720469e["langchain_core.language_models"] 569dc75d_2e97_e981_36ef_1dd9bcdc0ad8 --> ba43b74d_3099_7e1c_aac3_cf594720469e bab3058f_1ec6_5a8a_2b11_86f46e62adb4["langchain_tests.unit_tests"] 569dc75d_2e97_e981_36ef_1dd9bcdc0ad8 --> bab3058f_1ec6_5a8a_2b11_86f46e62adb4 f640c303_c8a1_2c32_f60e_bf14e7f4c287["langchain_xai"] 569dc75d_2e97_e981_36ef_1dd9bcdc0ad8 --> f640c303_c8a1_2c32_f60e_bf14e7f4c287 style 569dc75d_2e97_e981_36ef_1dd9bcdc0ad8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""Standard LangChain interface tests"""
from langchain_core.language_models import BaseChatModel
from langchain_tests.unit_tests import ( # type: ignore[import-not-found]
ChatModelUnitTests, # type: ignore[import-not-found]
)
from langchain_xai import ChatXAI
MODEL_NAME = "grok-4"
class TestXAIStandard(ChatModelUnitTests):
@property
def chat_model_class(self) -> type[BaseChatModel]:
return ChatXAI
@property
def chat_model_params(self) -> dict:
return {"model": MODEL_NAME}
@property
def init_from_env_params(self) -> tuple[dict, dict, dict]:
return (
{
"XAI_API_KEY": "api_key",
},
{
"model": MODEL_NAME,
},
{
"xai_api_key": "api_key",
"xai_api_base": "https://api.x.ai/v1/",
},
)
Domain
Subdomains
Classes
Dependencies
- langchain_core.language_models
- langchain_tests.unit_tests
- langchain_xai
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 3 module(s): langchain_core.language_models, langchain_tests.unit_tests, langchain_xai.
Where is test_chat_models_standard.py in the architecture?
test_chat_models_standard.py is located at libs/partners/xai/tests/unit_tests/test_chat_models_standard.py (domain: CoreAbstractions, subdomain: MessageSchema, directory: libs/partners/xai/tests/unit_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free