From cde13bcdeabec1aac945a126a14ee41ef366126d Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Mon, 16 Oct 2023 09:57:19 -0700 Subject: [PATCH] cmd: only print server version when different --- cmd/cmd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 2fd5cacc..db4c8f50 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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 {