From: hogeheer499-commits Date: Sat, 25 Jul 2026 19:15:27 +0000 (+0200) Subject: common : skip empty implicit default preset (#25643) X-Git-Tag: upstream/0.0.10438~310 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c812c543f8ab480661bd10b9546515b608b4747f;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : skip empty implicit default preset (#25643) The INI parser creates an implicit default section for top-level metadata. After reserved keys such as `version` are skipped, that section can have no model options but was still added and exposed in router mode. Skip only the empty implicit default while preserving real default presets, named presets, and the global `[*]` settings. Signed-off-by: JS van Dijk Co-authored-by: JS van Dijk --- diff --git a/common/preset.cpp b/common/preset.cpp index 4362c0621..eb0c60b09 100644 --- a/common/preset.cpp +++ b/common/preset.cpp @@ -330,6 +330,10 @@ common_presets common_preset_context::load_from_ini(const std::string & path, co } } + if (preset.name == COMMON_PRESET_DEFAULT_NAME && preset.options.empty()) { + continue; + } + if (preset.name == "*") { // handle global preset global = preset;