Update cmd.go
This commit is contained in:
parent
40134c6587
commit
ea90ee7415
@ -626,7 +626,7 @@ func PushHandler(cmd *cobra.Command, args []string) error {
|
|||||||
spinner.Stop()
|
spinner.Stop()
|
||||||
|
|
||||||
destination := n.String()
|
destination := n.String()
|
||||||
if strings.HasSuffix(n.Host, ".ollama.ai") || strings.HasSuffix(n.Host, ".ollama.com") {
|
if isOllamaHost {
|
||||||
destination = "https://ollama.com/" + strings.TrimSuffix(n.DisplayShortest(), ":latest")
|
destination = "https://ollama.com/" + strings.TrimSuffix(n.DisplayShortest(), ":latest")
|
||||||
}
|
}
|
||||||
fmt.Printf("\nYou can find your model at:\n\n")
|
fmt.Printf("\nYou can find your model at:\n\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user