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
cde13bcd
Commit
cde13bcd
authored
Oct 16, 2023
by
Michael Yang
Browse files
cmd: only print server version when different
parent
0f0cd265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cmd/cmd.go
cmd/cmd.go
+3
-1
No files found.
cmd/cmd.go
View file @
cde13bcd
...
...
@@ -1050,7 +1050,9 @@ func versionHandler(cmd *cobra.Command, _ []string) {
return
}
fmt
.
Printf
(
"server version %s
\n
"
,
serverVersion
)
if
serverVersion
!=
version
.
Version
{
fmt
.
Printf
(
"ollama host version %s
\n
"
,
serverVersion
)
}
}
func
NewCLI
()
*
cobra
.
Command
{
...
...
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