Compare commits

..

2 Commits

Author SHA1 Message Date
Jeffrey Morgan
99ccf0c5d3 fix broken link in README.md 2023-07-20 02:15:11 -07:00
Jeffrey Morgan
d59b164fa2 add prompt back to parser 2023-07-20 01:13:30 -07:00
3 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ ollama run mario
Hello! It's your friend Mario.
```
For more info on `Modelfile` syntax see [this doc](./docs/modelfile).
For more examples, see the [examples](./examples) directory.
### Pull a model from the registry

View File

@@ -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":

View File

@@ -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)