fix(gallery): normalize inconsistent tag casing/plurals across gallery models#9574
Open
Anai-Guo wants to merge 1 commit intomudler:masterfrom
Open
fix(gallery): normalize inconsistent tag casing/plurals across gallery models#9574Anai-Guo wants to merge 1 commit intomudler:masterfrom
Anai-Guo wants to merge 1 commit intomudler:masterfrom
Conversation
…y models
- embeddings → embedding (6 models): aligns with the WebUI filter button
defined in core/http/views/models.html ({ term: 'embedding', ... }), so
models like nomic-embed-text-v1.5 now appear under the Embedding filter
- TTS → tts (5 models), ASR → asr (2 models): lowercase, per existing
convention used by 161+ models
- CPU/Cpu → cpu (17 models), GPU → gpu (17 models): lowercase, per existing
convention used by 666+ models
- dedupe duplicate tag entries on 3 models that already had repeated tags
(gpt-oss-20b had gguf x2; arcee-ai/AFM-4.5B had gpu x2; one Qwen model
had default x2)
Closes mudler#9247
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #9247 — the gallery's
Embeddingfilter only surfaces 5 models because well-known embedding models (nomic-embed-text-v1.5,granite-embedding-*,embeddinggemma-300m,all-MiniLM-L6-v2,bert-embeddings) are tagged with the pluralembeddingswhile the WebUI filter looks for the singularembedding.While auditing for the reporter's stated suspicion that "this may be happening with other tags", I also found case-inconsistent variants of
cpu/gpu/tts/asr(e.g.GPU,Cpu,CPU,TTS,ASR) and three pre-existing duplicate-tag entries.Changes (only
gallery/index.yaml)embeddingsembeddingTTSttsASRasrCPU,CpucpuGPUgpuThe canonical form is the one already used by 600–800+ existing models AND, for
embedding, the term hardcoded by the WebUI category filter:https://github.com/mudler/LocalAI/blob/master/core/http/views/models.html#L… —
{ term: 'embedding', label: 'Embedding', icon: 'fas fa-vector-square' }Bonus cleanup: deduplicated tag entries on 3 models that already had repeated tags before this PR (
gpt-oss-20bhadgguflisted twice,arcee-ai/AFM-4.5Bhadgpulisted twice, one Qwen variant haddefaultlisted twice).Verification
All 969 model entries unchanged outside their
tagslists. Repro for the original bug:Embeddingin the gallery — was 5 models, now 11 (incl.nomic-embed-text-v1.5,granite-embedding-*,embeddinggemma-300m).🤖 Generated with Claude Code