Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
d59b164f
Commit
d59b164f
authored
Jul 20, 2023
by
Jeffrey Morgan
Browse files
add prompt back to parser
parent
55b5f5dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
parser/parser.go
parser/parser.go
+1
-1
server/images.go
server/images.go
+1
-1
No files found.
parser/parser.go
View file @
d59b164f
...
...
@@ -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"
:
...
...
server/images.go
View file @
d59b164f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment