Skip to main content

public_model_id

Function public_model_id 

Source
pub fn public_model_id(source: &ResolvedModelSource) -> String
Expand description

Stable product-facing model id derived from one resolved source.

Repository models retain their canonical repository id. Direct local directories use the directory name, while GGUF files use the file stem. run and serve must use this helper rather than inventing entrypoint- specific ids for the same local source.