MCPcopy Create free account
hub / github.com/AgenticInternet/agentic-internet / initialize_model

Function initialize_model

agentic_internet/utils/model_utils.py:66–102  ·  view source on GitHub ↗

Initialize a model based on model_id and settings configuration. Returns: Initialized model instance or None if initialization fails.

(
    model_id: str | None = None,
    verbose: bool = False,
    temperature: float | None = None,
    max_tokens: int | None = None,
    top_p: float | None = None,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 5

get_any_available_modelFunction · 0.85
resolve_model_idMethod · 0.80
get_model_providerMethod · 0.80