Home / Function/ _set_model_profile() — langchain Function Reference

_set_model_profile() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f05c2ccf_b262_d455_5c41_861d786fb41b["_set_model_profile()"]
  1a5cd25a_9420_c6b2_ec8d_2b53c6427514["ChatFireworks"]
  f05c2ccf_b262_d455_5c41_861d786fb41b -->|defined in| 1a5cd25a_9420_c6b2_ec8d_2b53c6427514
  3ad4c8ae_f0c8_129a_60df_278c7adb2597["_get_default_model_profile()"]
  f05c2ccf_b262_d455_5c41_861d786fb41b -->|calls| 3ad4c8ae_f0c8_129a_60df_278c7adb2597
  style f05c2ccf_b262_d455_5c41_861d786fb41b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/fireworks/langchain_fireworks/chat_models.py lines 423–427

    def _set_model_profile(self) -> Self:
        """Set model profile if not overridden."""
        if self.profile is None:
            self.profile = _get_default_model_profile(self.model_name)
        return self

Domain

Subdomains

Frequently Asked Questions

What does _set_model_profile() do?
_set_model_profile() is a function in the langchain codebase, defined in libs/partners/fireworks/langchain_fireworks/chat_models.py.
Where is _set_model_profile() defined?
_set_model_profile() is defined in libs/partners/fireworks/langchain_fireworks/chat_models.py at line 423.
What does _set_model_profile() call?
_set_model_profile() calls 1 function(s): _get_default_model_profile.

Analyze Your Own Codebase

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

Try Supermodel Free