From 0552e9e5858b4a995176be7fb052bd5dfd8ef9c8 Mon Sep 17 00:00:00 2001 From: litang9 <141409885+litang9@users.noreply.github.com> Date: Mon, 13 Jul 2026 23:27:35 +0800 Subject: [PATCH] fix: raise OpenClaw report maxTokens to 8192 to prevent truncation The OpenClaw deep-dive report uses the largest input (issues+prs+releases, often 900+ items) but called callLlm with the default maxTokens=4096, which is smaller than trending (6144) and web (8192). On high-activity days the output hit finish_reason=length mid-sentence and got written to the issue as truncated text. Pass 8192 explicitly, matching the web report. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6f070e2..a5c7b43 100644 --- a/src/index.ts +++ b/src/index.ts @@ -190,7 +190,7 @@ async function generateSummaries( } console.log(` [openclaw] Calling LLM for OpenClaw report...`); try { - return await callLlm(buildPeerPrompt(cfg, issues, prs, releases, dateStr, 50, 30, lang)); + return await callLlm(buildPeerPrompt(cfg, issues, prs, releases, dateStr, 50, 30, lang), 8192); } catch (err) { console.error(` [openclaw] LLM call failed: ${err}`); return summaryFailed;