Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

add prompt back to parser

Jeffrey Morgand59b164fa2a3
diff --git a/parser/parser.go b/parser/parser.go
index fcb50bf5b..c417512dc 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -39,7 +39,7 @@ func Parse(reader io.Reader) ([]Command, error) {
command.Args = string(fields[1])
// copy command for validation
modelCommand = command
- case "LICENSE", "TEMPLATE", "SYSTEM":
+ case "LICENSE", "TEMPLATE", "SYSTEM", "PROMPT":
command.Name = string(bytes.ToLower(fields[0]))
command.Args = string(fields[1])
case "PARAMETER":
diff --git a/server/images.go b/server/images.go
index 19280d579..4258b2011 100644
--- a/server/images.go
+++ b/server/images.go
@@ -250,7 +250,7 @@ func CreateModel(name string, path string, fn func(status string)) error {
layers = append(layers, newLayer)
}
}
- case "license", "template", "system":
+ case "license", "template", "system", "prompt":
fn(fmt.Sprintf("creating %s layer", c.Name))
// remove the prompt layer if one exists
mediaType := fmt.Sprintf("application/vnd.ollama.image.%s", c.Name)