Skip to main content

check_ai_credentials

Function check_ai_credentials 

Source
pub fn check_ai_credentials(
    model_override: Option<&str>,
) -> Result<AiCredentialInfo>
Expand description

Validates that AI credentials are available before processing.

This performs a lightweight check of environment variables without creating a full AI client. Use this at the start of commands that require AI to fail fast if credentials are missing.