remove modelfile context deprecated in v0.0.7 (#974)
This commit is contained in:
parent
06589a3b30
commit
b9dc875401
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue