Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

enable `cache_prompt` by default

Jeffrey Morgand4ebdadbe79a
diff --git a/api/types.go b/api/types.go
index 7662599ad..47f0e124f 100644
--- a/api/types.go
+++ b/api/types.go
@@ -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
diff --git a/llm/ext_server.go b/llm/ext_server.go
index 5a760e3eb..0f7d441ae 100644
--- a/llm/ext_server.go
+++ b/llm/ext_server.go
@@ -234,8 +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,
- "cache_prompt": opts.Cache,
+ "image_data": imageData,
+ "cache_prompt": true,
}
if predict.Format == "json" {