pub fn build_new_model(
file_path: &Path,
gguf: Option<&GgufMetadata>,
parser: &dyn GgufParserPort,
origin: &ModelOrigin<'_>,
added_at: DateTime<Utc>,
) -> NewModelExpand description
Build the NewModel row for a model being added, from either the
local-file or HuggingFace path.
The single place that decides a model’s stored name, parameter count,
tags, and capability flags, so both add paths produce the same result
for the same GGUF file. gguf is None only when the header could not
be parsed — tolerated on the download path; the local-file path
validates first and always passes Some.