{{ 'account.nuclia-tokens.tokens-consumed' | translate }}:  {{ totalTokens | async | number: digitsInfo }}
{{ 'account.nuclia-tokens.details' | translate }}
@if (((periods | async) || []).length > 0 && selectedPeriod) {
@for (period of ((periods | async) || []); track period.start.toString()) { @if (isSubscribedToStripe | async) { {{ period.start | date: 'MMM d, y': 'UTC' }} - {{ period.end | date: 'MMM d, y': 'UTC' }} } @else { {{ period.start | date: 'MMMM y': 'UTC' }} } }
} @if (((kbList | async) || []).length > 1) {
{{ 'account.nuclia-tokens.account' | translate }} @for (kb of kbList | async; track kb.id) { {{ kb.title }} }
}
@if (!loading) { @let groups = visibleGroups | async; @if ((groups || []).length > 0) { @for (group of groups; track group.title) { {{ 'account.nuclia-tokens.description' | translate }} {{ 'account.nuclia-tokens.operations' | translate }} {{ 'billing.tokens' | translate }}
{{ 'account.nuclia-tokens.average-cost' | translate }}
({{ 'account.nuclia-tokens.tokens-per-operation' | translate }})
@for ( item of group.details; track item.identifier.type + (item.identifier.model || '') + item.identifier.version + item.identifier.service ) {
{{ item.identifier.type }} @if (item.help) { }
@if (item.modelName) {
({{ item.modelName }})
}
{{ item.help }}
@if (item.totalRequests > 0) {
{{ item.totalRequests }}
}
@if ((item.counters | keyvalue).length > 1) { @for (counter of item.counters | keyvalue; track counter.key; let first = $first) { @if (first) { {{ 'account.nuclia-tokens.total' | translate }}: {{ item.total | number: digitsInfo }} }
{{ counter.key }}: {{ counter.value | number: digitsInfo }}
} } @else {
{{ item.total | number: digitsInfo }}
}
@if (item.average > 0) {
{{ item.average | number: (item.average >= 0.01 ? '1.0-2' : '1.0-5') }}
}
}
}
} @else { {{ 'account.nuclia-tokens.no-consumption' | translate }} } }