_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 c689fcf8_a992_8317_e803_84f31b12e2a0["_get_default_model_profile()"] a85819c7_917d_4c71_2864_a19e68947340["chat_models.py"] c689fcf8_a992_8317_e803_84f31b12e2a0 -->|defined in| a85819c7_917d_4c71_2864_a19e68947340 63ba6ba9_c5fe_8164_078a_4bb8bff79792["set_default_max_tokens()"] 63ba6ba9_c5fe_8164_078a_4bb8bff79792 -->|calls| c689fcf8_a992_8317_e803_84f31b12e2a0 95ebec43_620f_5368_a20c_acafbcbcc193["_set_model_profile()"] 95ebec43_620f_5368_a20c_acafbcbcc193 -->|calls| c689fcf8_a992_8317_e803_84f31b12e2a0 style c689fcf8_a992_8317_e803_84f31b12e2a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/langchain_anthropic/chat_models.py lines 78–90
def _get_default_model_profile(model_name: str) -> ModelProfile:
"""Get the default profile for a model.
Args:
model_name: The model identifier.
Returns:
The model profile dictionary, or an empty dict if not found.
"""
default = _MODEL_PROFILES.get(model_name)
if default:
return default.copy()
return {}
Domain
Subdomains
Source
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/anthropic/langchain_anthropic/chat_models.py.
Where is _get_default_model_profile() defined?
_get_default_model_profile() is defined in libs/partners/anthropic/langchain_anthropic/chat_models.py at line 78.
What calls _get_default_model_profile()?
_get_default_model_profile() is called by 2 function(s): _set_model_profile, set_default_max_tokens.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free