Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix default modelfile for create (#8452)
Patrick Devinea420a453b478
diff --git a/cmd/cmd.go b/cmd/cmd.goindex cfefa35c6..17c607171 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -59,7 +59,7 @@ func getModelfileName(cmd *cobra.Command) (string, error) {_, err = os.Stat(absName)if err != nil {- return filename, err+ return "", err}return absName, nildiff --git a/cmd/cmd_test.go b/cmd/cmd_test.goindex 069428bec..c89632800 100644--- a/cmd/cmd_test.go+++ b/cmd/cmd_test.go@@ -279,7 +279,7 @@ func TestGetModelfileName(t *testing.T) {name: "no modelfile specified, no modelfile exists",modelfileName: "",fileExists: false,- expectedName: "Modelfile",+ expectedName: "",expectedErr: os.ErrNotExist,},{@@ -293,7 +293,7 @@ func TestGetModelfileName(t *testing.T) {name: "modelfile specified, no modelfile exists",modelfileName: "crazyfile",fileExists: false,- expectedName: "crazyfile",+ expectedName: "",expectedErr: os.ErrNotExist,},{