Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
resolve FROM path before sending modelfile (#1211)
Bruce MacDonald31ab453d37f0
diff --git a/cmd/cmd.go b/cmd/cmd.goindex 2c48ca80a..8990a652a 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -82,6 +82,10 @@ func CreateHandler(cmd *cobra.Command, args []string) error {path = filepath.Join(home, path[2:])}+ if !filepath.IsAbs(path) {+ path = filepath.Join(filepath.Dir(filename), path)+ }+bin, err := os.Open(path)if errors.Is(err, os.ErrNotExist) && c.Name == "model" {continue