From 357de6e07dc10b10e5ca145905f82b26d28554a1 Mon Sep 17 00:00:00 2001 From: thxCode Date: Wed, 11 Dec 2024 18:32:09 +0800 Subject: [PATCH] fix: failed on parsing -ol-* Signed-off-by: thxCode --- file_from_distro.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file_from_distro.go b/file_from_distro.go index 9150e5a..217b185 100644 --- a/file_from_distro.go +++ b/file_from_distro.go @@ -31,6 +31,8 @@ func ParseGGUFFileFromOllamaModel(ctx context.Context, model *OllamaModel, opts return nil, ErrOllamaInvalidModel } + opts = append(opts[:len(opts):len(opts)], SkipRangeDownloadDetection()) + var o _GGUFReadOptions for _, opt := range opts { opt(&o)