Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
d8932c55
Unverified
Commit
d8932c55
authored
Feb 04, 2025
by
William
Committed by
GitHub
Feb 04, 2025
Browse files
server: fix out of bounds exception on model download (#8746)
parent
63f0269f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/download.go
server/download.go
+2
-2
No files found.
server/download.go
View file @
d8932c55
...
@@ -170,9 +170,9 @@ func (b *blobDownload) Prepare(ctx context.Context, requestURL *url.URL, opts *r
...
@@ -170,9 +170,9 @@ func (b *blobDownload) Prepare(ctx context.Context, requestURL *url.URL, opts *r
offset
+=
size
offset
+=
size
}
}
}
}
else
{
slog
.
Info
(
fmt
.
Sprintf
(
"downloading %s in %d %s part(s)"
,
b
.
Digest
[
7
:
19
],
len
(
b
.
Parts
),
format
.
HumanBytes
(
b
.
Parts
[
0
]
.
Size
)))
slog
.
Info
(
fmt
.
Sprintf
(
"downloading %s in %d %s part(s)"
,
b
.
Digest
[
7
:
19
],
len
(
b
.
Parts
),
format
.
HumanBytes
(
b
.
Parts
[
0
]
.
Size
)))
}
return
nil
return
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment