"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "5e96333cb2637fd5fb1fe76b00946555b491fb6d"
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) { ...@@ -1050,7 +1050,9 @@ func versionHandler(cmd *cobra.Command, _ []string) {
return return
} }
fmt.Printf("server version %s\n", serverVersion) if serverVersion != version.Version {
fmt.Printf("ollama host version %s\n", serverVersion)
}
} }
func NewCLI() *cobra.Command { 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