Home / Function/ model_override_value() — langchain Function Reference

model_override_value() — langchain Function Reference

Architecture documentation for the model_override_value() function in chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  20b977f2_0cdc_ec25_c654_9b1361ea427b["model_override_value()"]
  93a85b25_a139_159d_bcf5_03a6e2ed4dd3["ChatModelTests"]
  20b977f2_0cdc_ec25_c654_9b1361ea427b -->|defined in| 93a85b25_a139_159d_bcf5_03a6e2ed4dd3
  style 20b977f2_0cdc_ec25_c654_9b1361ea427b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/unit_tests/chat_models.py lines 267–273

    def model_override_value(self) -> str | None:
        """Alternative model name to use when testing model override.

        Should return a valid model name that differs from the default model.
        Required if `supports_model_override` is `True`.
        """
        return None

Domain

Subdomains

Frequently Asked Questions

What does model_override_value() do?
model_override_value() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/unit_tests/chat_models.py.
Where is model_override_value() defined?
model_override_value() is defined in libs/standard-tests/langchain_tests/unit_tests/chat_models.py at line 267.

Analyze Your Own Codebase

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

Try Supermodel Free