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
db0968f3
"vscode:/vscode.git/clone" did not exist on "0a5d5a2c686ff5e69eed8b4b19b0501f29a24d1d"
Unverified
Commit
db0968f3
authored
Jul 22, 2024
by
Josh
Committed by
GitHub
Jul 22, 2024
Browse files
fix dupe err message (#5857)
parent
c0648233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
server/routes.go
server/routes.go
+3
-4
No files found.
server/routes.go
View file @
db0968f3
...
...
@@ -609,10 +609,9 @@ func (s *Server) CreateModelHandler(c *gin.Context) {
defer
cancel
()
quantization
:=
cmp
.
Or
(
r
.
Quantize
,
r
.
Quantization
)
if
err
:=
CreateModel
(
ctx
,
name
,
filepath
.
Dir
(
r
.
Path
),
strings
.
ToUpper
(
quantization
),
f
,
fn
);
err
!=
nil
{
if
errors
.
Is
(
err
,
errBadTemplate
)
{
ch
<-
gin
.
H
{
"error"
:
err
.
Error
(),
"status"
:
http
.
StatusBadRequest
}
}
if
err
:=
CreateModel
(
ctx
,
name
,
filepath
.
Dir
(
r
.
Path
),
strings
.
ToUpper
(
quantization
),
f
,
fn
);
errors
.
Is
(
err
,
errBadTemplate
)
{
ch
<-
gin
.
H
{
"error"
:
err
.
Error
(),
"status"
:
http
.
StatusBadRequest
}
}
else
if
err
!=
nil
{
ch
<-
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