mirror of
https://github.com/ollama/ollama.git
synced 2025-06-30 04:40:50 +02:00
cmd: only print server version when different
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user