Q74: billing shows money spent against allocations, not an allocation ratio
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
844607eae9
commit
daea9797d4
7 files changed
+38
-4
No files matched your search
@@ -8,6 +8,7 @@ type Row = Record<string, unknown>;
|
||||
type ProviderUsageWindowRow = Pick<
|
||||
AppSnapshot["providerRateLimits"][number],
|
||||
"orgId" | "providerId" | "windowStart" | "windowEnd" | "requestCount" | "inputCharCount" | "outputCharCount"
|
||||
| "costCents" | "inputTokens" | "outputTokens" | "requestsWithoutUsage" | "unpricedRequests"
|
||||
>;
|
||||
|
||||
function all<T>(statement: StatementSync): T[] {
|
||||
@@ -224,6 +225,11 @@ function buildProviderRateLimits(
|
||||
outputCharCount,
|
||||
remainingRequestCount,
|
||||
exhausted: remainingRequestCount === 0,
|
||||
costCents: usage?.costCents ?? 0,
|
||||
inputTokens: usage?.inputTokens ?? 0,
|
||||
outputTokens: usage?.outputTokens ?? 0,
|
||||
requestsWithoutUsage: usage?.requestsWithoutUsage ?? 0,
|
||||
unpricedRequests: usage?.unpricedRequests ?? 0,
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user