Unverified Commit e3f925fc authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

fix: restore modelfile system in prompt template (#1425)

parent 2a2289fb
...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment