mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 15:39:06 +08:00
fix: remove category from read_content token tracking
Co-Authored-By: sha.zhou@jina.ai <sha.zhou@jina.ai>
This commit is contained in:
@@ -79,7 +79,7 @@ export function readUrl(url: string, tracker?: TokenTracker): Promise<{ response
|
||||
// Track content length tokens using the same estimation method
|
||||
if (response.data.content) {
|
||||
const contentTokens = Math.ceil(Buffer.byteLength(response.data.content, 'utf-8') / 4);
|
||||
tracker.trackUsage('read_content', contentTokens, TOKEN_CATEGORIES.REASONING);
|
||||
tracker.trackUsage('read_content', contentTokens);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user