"vscode:/vscode.git/clone" did not exist on "d0ec1aaae084bc83dc5f08f387e24bb231107a39"
Commit d4ebdadb authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

enable `cache_prompt` by default

parent c5f21f73
......@@ -103,7 +103,6 @@ type Options struct {
MirostatEta float32 `json:"mirostat_eta,omitempty"`
PenalizeNewline bool `json:"penalize_newline,omitempty"`
Stop []string `json:"stop,omitempty"`
Cache bool `json:"cache,omitempty"`
}
// Runner options which must be set when the model is loaded into memory
......
......@@ -235,7 +235,7 @@ func predict(llm extServer, opts api.Options, ctx context.Context, predict Predi
"seed": opts.Seed,
"stop": opts.Stop,
"image_data": imageData,
"cache_prompt": opts.Cache,
"cache_prompt": true,
}
if predict.Format == "json" {
......
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