fix: attempt completion (#2091)

This commit is contained in:
yetone
2025-05-27 17:29:53 +08:00
committed by GitHub
parent 53f29bf76d
commit 0b4775c8f7
4 changed files with 16 additions and 7 deletions

View File

@@ -94,7 +94,7 @@ function M.func(opts, on_log, on_complete, session_ctx)
local size = 0
for _, line in ipairs(lines or {}) do
size = size + #line
if size > 1024 * 10 then
if size > 2048 * 10 then
is_truncated = true
break
end