fix vars.First

This commit is contained in:
Michael Yang 2023-07-21 20:45:32 -07:00
parent 3b43cc019a
commit 20a5d99f77

View file

@ -51,7 +51,7 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
Context []int Context []int
} }
vars.First = len(vars.Context) == 0 vars.First = len(request.Context) == 0
vars.System = m.System vars.System = m.System
vars.Prompt = request.Prompt vars.Prompt = request.Prompt
vars.Context = request.Context vars.Context = request.Context