From 7c01751fe680f230e5eaec5f2eab6d43f9390fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 22 Feb 2025 01:23:58 +0900 Subject: [PATCH] feat(model): add stream param to ollama --- model/ollama.go | 1 + 1 file changed, 1 insertion(+) diff --git a/model/ollama.go b/model/ollama.go index f8b8170..c3615f9 100644 --- a/model/ollama.go +++ b/model/ollama.go @@ -21,6 +21,7 @@ type OLLaMA struct { Temperature float32 `json:"temperature"` // Temperature 0.7 TopP float32 `json:"top_p"` // TopP 0.9 MaxTokens int `json:"max_tokens"` // MaxTokens 4096 + Stream bool `json:"stream"` } // NewOLLaMA use temp 0.7, topp 0.9, maxn 4096 if you don't know the meaning.