production runtime and mock removal

This commit is contained in:
inman committed 2026-08-17 23:44:14 +08:00
1 parent 2ef3da7af5
commit 6480e503eb
55 files changed
+581 -540

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ export type BillingGenerationInput = {
};
export async function quoteGenerationCharge(input: BillingGenerationInput): Promise<BillingJobCharge | undefined> {
if (!billingEnabled() || input.provider === "mock") return undefined;
if (!billingEnabled()) return undefined;
const quotaExempt = isQuotaExemptUsageContext(input.usageContext);
if (!input.usageContext?.organizationId && !quotaExempt) {
if (input.externalClientId || input.usageContext?.source === "api") return undefined;