mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 08:17:03 +00:00
fix create from model tag
This commit is contained in:
@@ -78,7 +78,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
bin, err := os.Open(path)
|
bin, err := os.Open(path)
|
||||||
if errors.Is(err, os.ErrNotExist) && c.Name == "model" {
|
if errors.Is(err, os.ErrNotExist) && c.Name == "model" {
|
||||||
// value might be a model reference and not a real file
|
continue
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user