Preserve full provider breakdown in billing UI coercion

This commit is contained in:
ي
2026-03-05 11:31:49 +05:30
parent 81f49f4ebd
commit 7d530b3220
2 changed files with 89 additions and 98 deletions

View File

@@ -201,11 +201,7 @@ export const ProviderUsageSchema = z.object({
cost: z.number(),
});
export const ProviderBreakdownSchema = z.object({
gemini: ProviderUsageSchema,
huggingface: ProviderUsageSchema,
wavespeed: ProviderUsageSchema.optional(),
});
export const ProviderBreakdownSchema = z.record(ProviderUsageSchema);
export const SubscriptionLimitsSchema = z.object({
plan_name: z.string(),