Restore system prompt on requests

This commit is contained in:
Jeffrey Morgan 2023-11-03 17:26:45 -07:00
parent c44b619428
commit e21579a0f1

View file

@ -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
}