From da86132f0c0e13333b270f42ab65961e36c7f11a Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Wed, 15 Apr 2026 03:11:13 +0000 Subject: [PATCH] fix: add num_predict=16384 to prevent output truncation on large articles --- services/extractor/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/extractor/client.py b/services/extractor/client.py index 9f8c2bc..324d3c7 100644 --- a/services/extractor/client.py +++ b/services/extractor/client.py @@ -258,6 +258,9 @@ class OllamaClient: ], "stream": False, "think": False, + "options": { + "num_predict": 16384, + }, } url = f"{self._config.base_url}/api/chat"