Skip to main content

resolve_openai_auth

Function resolve_openai_auth 

Source
pub fn resolve_openai_auth(
    auth_config: &OpenAIAuthConfig,
    storage_mode: AuthCredentialsStoreMode,
    api_key: Option<String>,
) -> Result<OpenAIResolvedAuth, Error>
Expand description

Resolve the active OpenAI auth source for the current configuration.