Skip to main content

resolve_model

Function resolve_model 

Source
pub async fn resolve_model(
    client: &Client,
    source: &SourceOptions,
    api_key: Option<&str>,
) -> Result<String, Error>
Expand description

Resolve the harness model: the explicit --model, or the first model the upstream serves.

ยงErrors

Returns a configuration error when no model is given and the upstream lists none.