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
orangecat
ollama
Commits
ec361481
"research/compression/entropy_coder/progressive" did not exist on "a8ba923c873f9848d0f6453f3e2e3fa2dd1187dc"
Unverified
Commit
ec361481
authored
Nov 01, 2023
by
Michael Yang
Committed by
GitHub
Nov 01, 2023
Browse files
Merge pull request #960 from jmorganca/mxyng/fix-tautology
parents
f1496931
bf6786bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
cmd/cmd.go
cmd/cmd.go
+6
-8
No files found.
cmd/cmd.go
View file @
ec361481
...
@@ -102,7 +102,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
...
@@ -102,7 +102,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
name
:=
args
[
0
]
name
:=
args
[
0
]
// check if the model exists on the server
// check if the model exists on the server
_
,
err
=
client
.
Show
(
context
.
Background
(),
&
api
.
ShowRequest
{
Name
:
name
})
_
,
err
=
client
.
Show
(
context
.
Background
(),
&
api
.
ShowRequest
{
Name
:
name
})
if
err
!=
nil
{
var
statusError
api
.
StatusError
var
statusError
api
.
StatusError
switch
{
switch
{
case
errors
.
As
(
err
,
&
statusError
)
&&
statusError
.
StatusCode
==
http
.
StatusNotFound
:
case
errors
.
As
(
err
,
&
statusError
)
&&
statusError
.
StatusCode
==
http
.
StatusNotFound
:
...
@@ -112,7 +111,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
...
@@ -112,7 +111,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
case
err
!=
nil
:
case
err
!=
nil
:
return
err
return
err
}
}
}
return
RunGenerate
(
cmd
,
args
)
return
RunGenerate
(
cmd
,
args
)
}
}
...
...
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