cmd: only print server version when different

This commit is contained in:
Michael Yang 2023-10-16 09:57:19 -07:00
parent 0f0cd265a7
commit cde13bcdea

View file

@ -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 {