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