Skip to main content

usable_model

Function usable_model 

Source
pub fn usable_model(
    agent: Agent,
    model: Option<&str>,
    source: Option<&str>,
    project: &str,
    available: &[String],
) -> Result<(), String>
Expand description

Whether model is one the agent can ask the gateway for: an alias the key may call. Err says what is wrong and what to set — no alias at all (no_model), or one (set at source) that the project does not have.