mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
fix: restore modelfile system in prompt template (#1425)
This commit is contained in:
parent
2a2289fb6b
commit
e3f925fc1b
@ -64,6 +64,11 @@ func (m *Model) Prompt(p PromptVars) (string, error) {
|
||||
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{
|
||||
"System": p.System,
|
||||
"Prompt": p.Prompt,
|
||||
|
Loading…
x
Reference in New Issue
Block a user