_get_default_model_profile() — langchain Function Reference
Architecture documentation for the _get_default_model_profile() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 4490adcc_a01c_c90f_d23d_634fa9fbd1ac["_get_default_model_profile()"] 2b046911_ea21_8e2e_ba0d_9d03da8d7bda["base.py"] 4490adcc_a01c_c90f_d23d_634fa9fbd1ac -->|defined in| 2b046911_ea21_8e2e_ba0d_9d03da8d7bda 6730e112_82c4_3a57_d779_b47b4f1f2f72["_set_model_profile()"] 6730e112_82c4_3a57_d779_b47b4f1f2f72 -->|calls| 4490adcc_a01c_c90f_d23d_634fa9fbd1ac style 4490adcc_a01c_c90f_d23d_634fa9fbd1ac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/base.py lines 145–147
def _get_default_model_profile(model_name: str) -> ModelProfile:
default = _MODEL_PROFILES.get(model_name) or {}
return default.copy()
Domain
Subdomains
Called By
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/openai/langchain_openai/chat_models/base.py.
Where is _get_default_model_profile() defined?
_get_default_model_profile() is defined in libs/partners/openai/langchain_openai/chat_models/base.py at line 145.
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