Add Cache flag to api (#1642)

This commit is contained in:
K0IN
2023-12-22 23:16:20 +01:00
committed by GitHub
parent db356c8519
commit 10da41d677
3 changed files with 6 additions and 2 deletions

View File

@@ -234,7 +234,8 @@ func predict(llm extServer, opts api.Options, ctx context.Context, predict Predi
"penalize_nl": opts.PenalizeNewline,
"seed": opts.Seed,
"stop": opts.Stop,
"image_data": imageData,
"image_data": imageData,
"cache_prompt": opts.Cache,
}
if predict.Format == "json" {