Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Restore system prompt on requests and default `num_keep` to `0`
Jeffrey Morgan17678b722506
diff --git a/api/types.go b/api/types.goindex ba23d74ab..e861ee3a7 100644--- a/api/types.go+++ b/api/types.go@@ -293,7 +293,7 @@ func DefaultOptions() Options {return Options{// options set on request to runnerNumPredict: -1,- NumKeep: 4,+ NumKeep: 0,Temperature: 0.8,TopK: 40,TopP: 0.9,diff --git a/llm/llama.go b/llm/llama.goindex f731acf47..4a713f853 100644--- a/llm/llama.go+++ b/llm/llama.go@@ -529,6 +529,8 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,"stop": llm.Stop,}+ fmt.Println(request)+// Handling JSON marshaling with special characters unescaped.buffer := &bytes.Buffer{}enc := json.NewEncoder(buffer)