Skip to main content

choose_by_difficulty

Function choose_by_difficulty 

Source
pub fn choose_by_difficulty(
    est_input_tokens: u32,
    r: &RoutingConfig,
) -> Option<String>
Expand description

Opt-in difficulty heuristic: pick frontier when the estimated input token count exceeds the threshold, else cheap. None when misconfigured (caller falls through to model_ref/global default).