Skip to main content

create_provider

Function create_provider 

Source
pub async fn create_provider(
    settings: &SettingsManager,
    provider: &str,
) -> Result<Arc<dyn AiProvider>>
Expand description

Initializes the provider with the given name if it exists in settings, else raises an error.