Skip to main content

optional_api_key

Function optional_api_key 

Source
pub fn optional_api_key(
    env_var_name: &str,
    inline: Option<&str>,
) -> Option<String>
Expand description

The env-then-inline lookup without the “or fail” ending, for vendors where an absent API key is a legitimate state rather than an error — Kimi accepts a Kimi Code CLI subscription login instead.