MCPcopy Create free account
hub / github.com/Safiullah-Rahu/CSV-AI / build_provider

Function build_provider

app/llm/factory.py:65–104  ·  view source on GitHub ↗

Construct an :class:`LLMProvider`. Falls back to :class:`Settings` defaults for any value not supplied, and resolves the API key from settings if the caller did not provide one.

(
    provider: str,
    *,
    model: Optional[str] = None,
    temperature: Optional[float] = None,
    max_tokens: Optional[int] = None,
    api_key: Optional[str] = None,
    base_url: Optional[str] = None,
    settings: Optional[Settings] = None,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

renderFunction · 0.90
renderFunction · 0.90
renderFunction · 0.90

Calls 3

ConfigurationErrorClass · 0.90
get_settingsFunction · 0.90
available_providersFunction · 0.85