Skip to main content

base_url_credential

Function base_url_credential 

Source
pub fn base_url_credential<S: BuildHasher>(
    env: &HashMap<String, String, S>,
) -> Result<BaseUrlCredential, MissingBase>
Expand description

The base-url credential shared by every base-url provider: the stamped ANTHROPIC_BASE_URL (trimmed, empty after trim = missing) and ANTHROPIC_AUTH_TOKEN, absent = empty bearer - a localhost proxy ignores the bearer and the probe must still fire.