Merge branch 'upstream' into concedo_experimental

This commit is contained in:
Concedo
2026-04-04 23:56:02 +08:00
5 changed files with 46 additions and 11 deletions
+6 -3
View File
@@ -600,9 +600,12 @@ static hf_cache::hf_file find_best_model(const hf_cache::hf_files & files,
}
}
for (const auto & f : files) {
if (gguf_filename_is_model(f.path)) {
return f;
// fallback to first available model only if tag is empty
if (tag.empty()) {
for (const auto & f : files) {
if (gguf_filename_is_model(f.path)) {
return f;
}
}
}