Skip to main content

create_google

Function create_google 

Source
pub fn create_google(
    settings: GoogleSettings,
) -> Result<GoogleProvider, ProviderError>
Expand description

Creates a Google Generative AI provider.

ยงErrors

Returns ProviderError::InvalidArgument when the base URL is invalid and ProviderError::Other when the default HTTP transport cannot be built. A missing API key is reported by the first request, not here.