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