mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch
This commit is contained in:
commit
cdb56cc80c
@ -15,7 +15,7 @@ export class TokenTracker extends EventEmitter {
|
||||
const asyncLocalContext = process.asyncLocalContext as any;
|
||||
this.on('usage', () => {
|
||||
if (asyncLocalContext.available()) {
|
||||
asyncLocalContext.ctx.chargeAmount = this.getTotalUsage();
|
||||
asyncLocalContext.ctx.chargeAmount = this.getTotalUsage().totalTokens;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user