From b29382b86f034052e78ef20addb04a7041800bbd Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Tue, 23 Jul 2024 13:57:40 -0700 Subject: [PATCH] bin --- cmd/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 29ab82a49..97db35d77 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -286,7 +286,7 @@ func createBlob(cmd *cobra.Command, path string) (string, error) { // The server checks for that file and if the server is local, it will copy the file over // If the local copy fails, the server will continue to the default local copy // If that fails, it will continue with the server POST - err = CreateBlob(cmd.Context(), path, digest) + err = CreateBlob(cmd.Context(), path, digest, bin) if errors.Is(err, ErrBlobExists) { return digest, nil } @@ -298,7 +298,7 @@ func createBlob(cmd *cobra.Command, path string) (string, error) { return digest, nil } -func CreateBlob(ctx context.Context, src, digest string) (error) { +func CreateBlob(ctx context.Context, src, digest string, r *os.File) (error) { ollamaHost := envconfig.Host client := http.DefaultClient