Skip to main content

resolve_route

Function resolve_route 

Source
pub fn resolve_route(
    model: &str,
    provider_keys: &BTreeMap<String, String>,
) -> Provider
Expand description

Decide which backend a model should route to.

  • provider/model shorthand where provider matches a known provider key → OpenAi
  • claude-*Anthropic
  • anything else → Anthropic (backward compat)