Browse Source

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

Bruce MacDonald 1 year ago
parent
commit
b9dc875401
1 changed files with 0 additions and 4 deletions
  1. 0 4
      server/images.go

+ 0 - 4
server/images.go

@@ -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