remove modelfile context deprecated in v0.0.7 (#974)

This commit is contained in:
Bruce MacDonald 2023-11-03 00:52:56 +00:00 committed by GitHub
parent 06589a3b30
commit b9dc875401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,15 +63,11 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
First bool
System string
Prompt string
// deprecated: versions <= 0.0.7 used this to omit the system prompt
Context []int
}
vars.First = len(request.Context) == 0
vars.Prompt = request.Prompt
vars.Context = request.Context
if len(vars.Context) == 0 {
vars.System = m.System