Skip to content

[gallery] Fix duplicate sha256 keys in Wan models#9461

Merged
mudler merged 1 commit intomudler:masterfrom
sec171:fix-wan-models-gallery
Apr 21, 2026
Merged

[gallery] Fix duplicate sha256 keys in Wan models#9461
mudler merged 1 commit intomudler:masterfrom
sec171:fix-wan-models-gallery

Conversation

@sec171
Copy link
Copy Markdown
Contributor

@sec171 sec171 commented Apr 21, 2026

Description

This PR fixes an unmarshal error that crashed the /api/models endpoint on startup. The wan-2.1 models previously defined the sha256 key twice in their files lists, which triggered strict mapping key checks in the YAML parser (failed to read gallery elements: yaml: unmarshal errors). This PR simply removes the redundant trailing sha256 keys from those Wan model definitions.

Notes for Reviewers

  • Tested locally: Starting local-ai with the patched index.yaml successfully resolves the 500 error on /api/models and accurately loads the model capabilities instead of crashing the parser.

Signed commits

  • Yes, I signed my commits.

The wan models previously defined the `sha256` key twice in their files lists,
which triggered strict mapping key checks in the YAML parser and resulted
in unmarshal errors that crashed the `/api/models` loading. This removes
the redundant trailing `sha256` keys from the Wan model definitions.

Assisted-by: Antigravity:Gemini-3.1-Pro-High [multi_replace_file_content, run_command]
Signed-off-by: Alex <codecrusher24@gmail.com>
@mudler mudler merged commit 01bd8ae into mudler:master Apr 21, 2026
1 check passed
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.

2 participants