remove modelfile context deprecated in v0.0.7 (#974)
This commit is contained in:
parent
06589a3b30
commit
b9dc875401
|
@ -63,15 +63,11 @@ func (m *Model) Prompt(request api.GenerateRequest) (string, error) {
|
||||||
First bool
|
First bool
|
||||||
System string
|
System string
|
||||||
Prompt string
|
Prompt string
|
||||||
|
|
||||||
// deprecated: versions <= 0.0.7 used this to omit the system prompt
|
|
||||||
Context []int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vars.First = len(request.Context) == 0
|
vars.First = len(request.Context) == 0
|
||||||
|
|
||||||
vars.Prompt = request.Prompt
|
vars.Prompt = request.Prompt
|
||||||
vars.Context = request.Context
|
|
||||||
|
|
||||||
if len(vars.Context) == 0 {
|
if len(vars.Context) == 0 {
|
||||||
vars.System = m.System
|
vars.System = m.System
|
||||||
|
|
Loading…
Reference in a new issue