Skip to content

common : skip empty implicit default preset#25643

Open
hogeheer499-commits wants to merge 1 commit into
ggml-org:masterfrom
hogeheer499-commits:human/preset-empty-default
Open

common : skip empty implicit default preset#25643
hogeheer499-commits wants to merge 1 commit into
ggml-org:masterfrom
hogeheer499-commits:human/preset-empty-default

Conversation

@hogeheer499-commits

Copy link
Copy Markdown

Overview

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.

Additional information

Fixes #22364

Verification performed:

  • Successfully built the CPU version of llama-server.
  • Confirmed that a metadata-only default is no longer exposed as a model in router mode.
  • Confirmed that a real default containing model=... is still preserved.
  • Confirmed that global [*] settings are still applied without being exposed as a model.
  • Confirmed that git diff --check passes.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES - I designed the solution and wrote the core code myself. AI suggested using the existing COMMON_PRESET_DEFAULT_NAME constant instead of the literal "default", ran the build and three router-mode tests, and helped verify the diff. I reviewed the change, understand how it works, and take responsibility for it.

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 <[email protected]>
@hogeheer499-commits hogeheer499-commits requested a review from a team as a code owner July 14, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misc. bug: llama-server --models-preset creates an unexpected "default" model entry

1 participant