Skip to main content

provider_to_models

Function provider_to_models 

Source
pub fn provider_to_models(
    provider_id: &str,
    cfg: &ProviderConfig,
) -> Option<Vec<Model>>
Expand description

Convert a (provider_id, ProviderConfig) pair into a list of library Models. Provider-level base_url/headers/auth_header fold into each model. Returns None for protocols that do not have a runtime provider.