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
OpenDAS
ollama
Commits
e3f925fc
Unverified
Commit
e3f925fc
authored
Dec 08, 2023
by
Bruce MacDonald
Committed by
GitHub
Dec 08, 2023
Browse files
fix: restore modelfile system in prompt template (#1425)
parent
2a2289fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
server/images.go
server/images.go
+5
-0
No files found.
server/images.go
View file @
e3f925fc
...
@@ -64,6 +64,11 @@ func (m *Model) Prompt(p PromptVars) (string, error) {
...
@@ -64,6 +64,11 @@ func (m *Model) Prompt(p PromptVars) (string, error) {
return
""
,
err
return
""
,
err
}
}
if
p
.
System
==
""
{
// use the default system prompt for this model if one is not specified
p
.
System
=
m
.
System
}
vars
:=
map
[
string
]
any
{
vars
:=
map
[
string
]
any
{
"System"
:
p
.
System
,
"System"
:
p
.
System
,
"Prompt"
:
p
.
Prompt
,
"Prompt"
:
p
.
Prompt
,
...
...
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