Commit cde13bcd authored by Michael Yang's avatar Michael Yang
Browse files

cmd: only print server version when different

parent 0f0cd265
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment