mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 14:30:17 +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:
parent
6d77060caa
commit
eb62d14e9e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user