Skip to main content

create_provider_with_headers

Function create_provider_with_headers 

Source
pub fn create_provider_with_headers(
    provider_type: ProviderType,
    api_key: String,
    model: String,
    base_url: Option<String>,
    extra_headers: Option<HashMap<String, String>>,
) -> Result<Box<dyn Provider>>
Expand description

Create a provider with extra headers support.