mirror of
https://github.com/mudler/LocalAI.git
synced 2026-04-29 03:24:49 -04:00
fix(model-loader): also skip .ckpt, .zip, and .tag files when scanning models
The local model directory scan treats every non-skipped file as a model config candidate. Sidecar artifacts that ship alongside checkpoints (checkpoint blobs, downloaded archives, ggml-style tag files) were slipping through and showing up as bogus models in the listing. Add their extensions to the suffix-skip list. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Assisted-by: Claude:claude-opus-4-7 [Claude Code]
This commit is contained in:
@@ -193,6 +193,9 @@ var knownModelsNameSuffixToSkip []string = []string{
|
||||
".bin",
|
||||
".gguf",
|
||||
".ggml",
|
||||
".ckpt",
|
||||
".zip",
|
||||
".tag",
|
||||
".partial",
|
||||
".tar.gz",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user