tok count fix #2
This commit is contained in:
@@ -147,8 +147,8 @@ static int AL(Cfg &cfg, Messages &msgs, Usage &out, volatile int *interrupted, s
|
|||||||
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;
|
||||||
if (u.cached_tokens > 0) out.cached_tokens = u.cached_tokens;
|
if (u.cached_tokens > 0) out.cached_tokens = u.cached_tokens;
|
||||||
if (!u.model.empty()) out.model = u.model;
|
if (!u.model.empty()) out.model = u.model;
|
||||||
|
|||||||
Reference in New Issue
Block a user