Q65: every call path records real tokens, cache, reasoning and cost
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1367a8900e
commit
c2f8e656f6
15 files changed
+187
-37
No files matched your search
@@ -78,7 +78,7 @@ export class ProviderResponseObserver {
|
||||
});
|
||||
// A late error on a request already cancelled or finished changes nothing.
|
||||
if (!failed) return;
|
||||
this.requestStore.recordUsage(input.orgId, input.provider.id, input.inputCharCount, 0);
|
||||
this.requestStore.recordUsage(input.orgId, input.provider.id, input.inputCharCount, 0, null);
|
||||
this.recordProviderHealth(input.provider.id, input.orgId, HEALTH_STATE_FAILED, message);
|
||||
this.operations.recordSignal({
|
||||
orgId: input.orgId,
|
||||
|
||||
Reference in new issue
Block a user