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
d660eebf
Commit
d660eebf
authored
Nov 15, 2023
by
Michael Yang
Browse files
fix create from model tag
parent
cac11c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cmd/cmd.go
cmd/cmd.go
+1
-1
No files found.
cmd/cmd.go
View file @
d660eebf
...
@@ -78,7 +78,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
...
@@ -78,7 +78,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
bin
,
err
:=
os
.
Open
(
path
)
bin
,
err
:=
os
.
Open
(
path
)
if
errors
.
Is
(
err
,
os
.
ErrNotExist
)
&&
c
.
Name
==
"model"
{
if
errors
.
Is
(
err
,
os
.
ErrNotExist
)
&&
c
.
Name
==
"model"
{
// value might be a model reference and not a real fil
e
continu
e
}
else
if
err
!=
nil
{
}
else
if
err
!=
nil
{
return
err
return
err
}
}
...
...
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