mirror of
https://github.com/ollama/ollama.git
synced 2025-04-11 21:29:32 +02:00
Update cmd.go
This commit is contained in:
parent
85822544a9
commit
4537a89b26
@ -629,7 +629,7 @@ func PushHandler(cmd *cobra.Command, args []string) error {
|
||||
spinner.Stop()
|
||||
|
||||
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")
|
||||
}
|
||||
fmt.Printf("\nYou can find your model at:\n\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user