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
c7dd5227
Commit
c7dd5227
authored
Jul 17, 2023
by
Michael Yang
Browse files
remove debugging messages
parent
53d0052c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
server/images.go
server/images.go
+2
-4
server/routes.go
server/routes.go
+0
-2
No files found.
server/images.go
View file @
c7dd5227
...
...
@@ -821,13 +821,11 @@ func downloadBlob(registryURL, repoName, digest string, username, password strin
for
{
fn
(
fmt
.
Sprintf
(
"Downloading %s"
,
digest
),
digest
,
int
(
total
),
int
(
completed
),
float64
(
completed
)
/
float64
(
total
))
if
completed
>=
total
{
fmt
.
Printf
(
"finished downloading
\n
"
)
err
=
os
.
Rename
(
fp
+
"-partial"
,
fp
)
if
err
!=
nil
{
fmt
.
Printf
(
"error: %v
\n
"
,
err
)
if
err
:=
os
.
Rename
(
fp
+
"-partial"
,
fp
);
err
!=
nil
{
fn
(
fmt
.
Sprintf
(
"error renaming file: %v"
,
err
),
digest
,
int
(
total
),
int
(
completed
),
1
)
return
err
}
break
}
...
...
server/routes.go
View file @
c7dd5227
...
...
@@ -67,8 +67,6 @@ func generate(c *gin.Context) {
}
req
.
Prompt
=
sb
.
String
()
log
.
Printf
(
"prompt:
\n
%s"
,
req
.
Prompt
)
llm
,
err
:=
llama
.
New
(
model
.
ModelPath
,
opts
)
if
err
!=
nil
{
c
.
JSON
(
http
.
StatusInternalServerError
,
gin
.
H
{
"error"
:
err
.
Error
()})
...
...
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