Merge pull request #172 from jmorganca/set-vars-first

fix vars.First
This commit is contained in:
Michael Yang 2023-07-21 20:55:06 -07:00 committed by GitHub
commit 37324a0a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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