Commit e21579a0 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

Restore system prompt on requests

parent c44b6194
......@@ -66,13 +66,9 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
}
vars.First = len(request.Context) == 0
vars.System = m.System
vars.Prompt = request.Prompt
if len(request.Context) == 0 {
vars.System = m.System
}
if request.System != "" {
vars.System = request.System
}
......
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