pub fn is_model_host(host_literal: &str) -> boolExpand description
Whether an endpoint HOST literal is a known model provider (case-insensitive; a subdomain of a
MODEL_HOSTS entry counts). Strips a :port suffix first. Two special forms carry their own rule,
matching candor-java’s Literals.isModelHost exactly: any host whose port is 11434 is a local
Ollama endpoint (a LOOPBACK host — localhost/127.0.0.1/::1 — on port 11434); and an AWS Bedrock
runtime host (the model-inference service label bedrock-runtime/bedrock-agent-runtime).