tok count patch

This commit is contained in:
Luxferre
2026-10-15 23:13:29 +03:00
parent a1d5f4bf48
commit b891a0f66b
+1 -1
View File
@@ -150,7 +150,7 @@ static int AL(Cfg &cfg, Messages &msgs, Usage &out, volatile int *interrupted, s
if (err) *err = std::move(lerr); if (err) *err = std::move(lerr);
rc = -1; break; rc = -1; break;
} }
out.prompt_tokens += u.prompt_tokens; out.prompt_tokens = u.prompt_tokens;
out.completion_tokens += u.completion_tokens; out.completion_tokens += u.completion_tokens;
out.total_tokens += u.total_tokens; out.total_tokens += u.total_tokens;
out.context_tokens = u.context_tokens; out.context_tokens = u.context_tokens;