Restore system prompt on requests
This commit is contained in:
parent
c44b619428
commit
e21579a0f1
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue