From b891a0f66bd04457fd966397dcc50a2b0a2d5a6b Mon Sep 17 00:00:00 2001 From: Luxferre Date: Thu, 15 Oct 2026 23:13:29 +0300 Subject: [PATCH] tok count patch --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 43f3597..049a9f5 100644 --- a/main.cpp +++ b/main.cpp @@ -150,7 +150,7 @@ static int AL(Cfg &cfg, Messages &msgs, Usage &out, volatile int *interrupted, s if (err) *err = std::move(lerr); rc = -1; break; } - out.prompt_tokens += u.prompt_tokens; + out.prompt_tokens = u.prompt_tokens; out.completion_tokens += u.completion_tokens; out.total_tokens += u.total_tokens; out.context_tokens = u.context_tokens;