Home / Function/ _get_default_model_profile() — langchain Function Reference

_get_default_model_profile() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  84a88b95_afa5_eedb_e5d8_82a1e32379bd["_get_default_model_profile()"]
  cfb937d2_ce7f_5338_2b62_6452043ac78a["chat_models.py"]
  84a88b95_afa5_eedb_e5d8_82a1e32379bd -->|defined in| cfb937d2_ce7f_5338_2b62_6452043ac78a
  a59952b6_c544_a64e_4e76_2042a3a43b3e["_set_model_profile()"]
  a59952b6_c544_a64e_4e76_2042a3a43b3e -->|calls| 84a88b95_afa5_eedb_e5d8_82a1e32379bd
  style 84a88b95_afa5_eedb_e5d8_82a1e32379bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/mistralai/langchain_mistralai/chat_models.py lines 97–99

def _get_default_model_profile(model_name: str) -> ModelProfile:
    default = _MODEL_PROFILES.get(model_name) or {}
    return default.copy()

Domain

Subdomains

Frequently Asked Questions

What does _get_default_model_profile() do?
_get_default_model_profile() is a function in the langchain codebase, defined in libs/partners/mistralai/langchain_mistralai/chat_models.py.
Where is _get_default_model_profile() defined?
_get_default_model_profile() is defined in libs/partners/mistralai/langchain_mistralai/chat_models.py at line 97.
What calls _get_default_model_profile()?
_get_default_model_profile() is called by 1 function(s): _set_model_profile.

Analyze Your Own Codebase

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

Try Supermodel Free