Unverified Commit b9dc8754 authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

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

parent 06589a3b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment