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
e33ef391
Commit
e33ef391
authored
Nov 16, 2023
by
Michael Yang
Committed by
Jeffrey Morgan
Nov 16, 2023
Browse files
fix push scope error for inherited model
parent
75295b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/upload.go
server/upload.go
+2
-2
No files found.
server/upload.go
View file @
e33ef391
...
@@ -55,7 +55,7 @@ func (b *blobUpload) Prepare(ctx context.Context, requestURL *url.URL, opts *Reg
...
@@ -55,7 +55,7 @@ func (b *blobUpload) Prepare(ctx context.Context, requestURL *url.URL, opts *Reg
if
b
.
From
!=
""
{
if
b
.
From
!=
""
{
values
:=
requestURL
.
Query
()
values
:=
requestURL
.
Query
()
values
.
Add
(
"mount"
,
b
.
Digest
)
values
.
Add
(
"mount"
,
b
.
Digest
)
values
.
Add
(
"from"
,
b
.
From
)
values
.
Add
(
"from"
,
ParseModelPath
(
b
.
From
)
.
GetNamespaceRepository
()
)
requestURL
.
RawQuery
=
values
.
Encode
()
requestURL
.
RawQuery
=
values
.
Encode
()
}
}
...
@@ -260,7 +260,7 @@ func (b *blobUpload) uploadChunk(ctx context.Context, method string, requestURL
...
@@ -260,7 +260,7 @@ func (b *blobUpload) uploadChunk(ctx context.Context, method string, requestURL
return
err
return
err
}
}
return
fmt
.
Errorf
(
"http status
%d
%s: %s"
,
resp
.
StatusCode
,
resp
.
Status
,
body
)
return
fmt
.
Errorf
(
"http status %s: %s"
,
resp
.
Status
,
body
)
}
}
if
method
==
http
.
MethodPatch
{
if
method
==
http
.
MethodPatch
{
...
...
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