Home / Function/ test_xai_model_param() — langchain Function Reference

test_xai_model_param() — langchain Function Reference

Architecture documentation for the test_xai_model_param() function in test_chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  8511edf8_e873_bccd_2f23_23d280d86535["test_xai_model_param()"]
  d3aa2dec_5fef_73c8_892f_691289c5feaf["test_chat_models.py"]
  8511edf8_e873_bccd_2f23_23d280d86535 -->|defined in| d3aa2dec_5fef_73c8_892f_691289c5feaf
  style 8511edf8_e873_bccd_2f23_23d280d86535 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/xai/tests/unit_tests/test_chat_models.py lines 31–37

def test_xai_model_param() -> None:
    llm = ChatXAI(model="foo")
    assert llm.model_name == "foo"
    llm = ChatXAI(model_name="foo")  # type: ignore[call-arg]
    assert llm.model_name == "foo"
    ls_params = llm._get_ls_params()
    assert ls_params.get("ls_provider") == "xai"

Domain

Subdomains

Frequently Asked Questions

What does test_xai_model_param() do?
test_xai_model_param() is a function in the langchain codebase, defined in libs/partners/xai/tests/unit_tests/test_chat_models.py.
Where is test_xai_model_param() defined?
test_xai_model_param() is defined in libs/partners/xai/tests/unit_tests/test_chat_models.py at line 31.

Analyze Your Own Codebase

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

Try Supermodel Free