Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix: allow importing a model from name reference (#3005)
Bruce MacDonald0cebc79cba77
diff --git a/server/images.go b/server/images.goindex abd8d7809..2ae2fadc7 100644--- a/server/images.go+++ b/server/images.go@@ -10,6 +10,7 @@ import ("errors""fmt""io"+ "io/fs""log""log/slog""net/http"@@ -322,9 +323,12 @@ func CreateModel(ctx context.Context, name, modelFileDir string, commands []parsggufName, err := convertSafetensors(name, pathName)if err != nil {+ var pathErr *fs.PathErrorswitch {case errors.Is(err, zip.ErrFormat):// it's not a safetensor archive+ case errors.As(err, &pathErr):+ // it's not a file on disk, could be a model referencedefault:return err}