Skip to main content

resolve_alias

Function resolve_alias 

Source
pub fn resolve_alias(model: &str) -> String
Expand description

Expand a friendly model alias to its full slug through the built-in table alone — the no-config path, for callers that have no resolved Routing in hand (an imported foreign session’s recorded model name, a help listing). Unknown values pass through unchanged so any real slug still works. A caller that DOES have a config resolves through Routing::resolve_alias instead, which additionally honours the config’s own alias table, its patterns, and its provider/account scopes.