mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 14:30:17 +08:00
fix: remove unused parameter in token-tracker
Co-Authored-By: sha.zhou@jina.ai <sha.zhou@jina.ai>
This commit is contained in:
parent
baf5263146
commit
90a8fabb29
@ -61,7 +61,7 @@ export class TokenTracker extends EventEmitter {
|
||||
const prompt_tokens = toolBreakdown.agent || 0;
|
||||
const completion_tokens = Object.entries(toolBreakdown)
|
||||
.filter(([tool]) => tool !== 'agent')
|
||||
.reduce((sum, [_, tokens]) => sum + tokens, 0);
|
||||
.reduce((sum, [, tokens]) => sum + tokens, 0);
|
||||
|
||||
return {
|
||||
prompt_tokens,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user