Skip to main content

create_provider

Function create_provider 

Source
pub fn create_provider(
    provider_cfg: &ProviderConfig,
    credential: &Credential,
) -> Result<Arc<dyn Provider>, ApiError>
Expand description

Factory function to create a provider instance based on the provider config and credential.

This function dispatches to the correct API client implementation based on the provider’s API format. It also supports base URL overrides for custom providers using compatible API formats.