pub fn canonicalize_v2_model_provider_name(name: &str) -> &strExpand description
Map a V2 model-provider family name (synonyms, regional variants, OAuth
suffixes) to its V3 canonical family. Production configs are normalised at
TOML load time by normalize_provider_type in
zeroclaw-config/src/schema/v2.rs. This helper duplicates the same table
at the runtime factory boundary so callers that bypass the schema
migration (programmatic factory invocations, tests, the
create_model_provider_with_url colon-URL legacy entry point) still
resolve. Inputs that are already canonical or unknown pass through
unchanged.