check request.Context for initial system prompt

This commit is contained in:
Jeffrey Morgan 2023-11-02 18:17:00 -07:00
parent b9dc875401
commit c50b01bc21

View file

@ -69,7 +69,7 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
vars.Prompt = request.Prompt vars.Prompt = request.Prompt
if len(vars.Context) == 0 { if len(request.Context) == 0 {
vars.System = m.System vars.System = m.System
} }