Skip to main content

resolve_model_scope

Function resolve_model_scope 

Source
pub fn resolve_model_scope(
    patterns: &[String],
    models: &[Model],
) -> (Vec<ScopedModel>, Vec<String>)
Expand description

pi’s resolveModelScopeFromModels: the models patterns select from models, in pattern order without duplicates, and a warning for each pattern that selects nothing or names an invalid level. A pattern is a glob over provider/id or the id, ignoring case, or a model pattern as --model takes. Either may end in :level.