production runtime and mock removal
This commit is contained in:
1 parent
2ef3da7af5
commit
6480e503eb
55 files changed
+581
-540
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user