From 9a101b8a44403b8ed102887fcd466e69a497c84a Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 5 Jun 2026 10:04:02 +0800 Subject: [PATCH] =?UTF-8?q?chatStream=20=E9=BB=98=E8=AE=A4=20keep=5Falive?= =?UTF-8?q?=3D1h=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=A8=A1=E5=9E=8B=E5=9C=A8=20A?= =?UTF-8?q?gent=20Loop=20=E5=A4=9A=E8=BD=AE=E8=B0=83=E7=94=A8=E5=90=8E?= =?UTF-8?q?=E8=A2=AB=20Ollama=20=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=8D=B8?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/api/ollama.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/api/ollama.ts b/src/renderer/api/ollama.ts index 8a1b44d..d0e45d7 100644 --- a/src/renderer/api/ollama.ts +++ b/src/renderer/api/ollama.ts @@ -73,6 +73,7 @@ export class OllamaAPI { model: params.model, messages: params.messages, stream: true, + keep_alive: '1h', }; if (params.think !== undefined) body.think = params.think; if (params.system) body.system = params.system;