fix: remove category from read_content token tracking

Co-Authored-By: sha.zhou@jina.ai <sha.zhou@jina.ai>
This commit is contained in:
Devin AI 2025-02-11 12:13:24 +00:00
parent 6d77060caa
commit eb62d14e9e

View File

@ -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);
}
}