AI Analysis and Content Strategy fixes. Enhanced Strategy Routes refactoring.

This commit is contained in:
ajaysi
2026-01-10 19:32:50 +05:30
parent 0b63ae7fc1
commit 8193cdba67
298 changed files with 45678 additions and 10952 deletions

View File

@@ -332,9 +332,9 @@ export const billingService = {
// Debug: Log cost calculation details
console.log('💰 [BILLING DEBUG] Cost calculation:', {
backendTotalCost: coerced.current_usage.total_cost,
geminiCost: coerced.current_usage.provider_breakdown.gemini.cost,
huggingfaceCost: coerced.current_usage.provider_breakdown.huggingface.cost,
calculatedTotal: coerced.current_usage.provider_breakdown.gemini.cost + coerced.current_usage.provider_breakdown.huggingface.cost,
geminiCost: coerced.current_usage.provider_breakdown.gemini?.cost ?? 0,
huggingfaceCost: coerced.current_usage.provider_breakdown.huggingface?.cost ?? 0,
calculatedTotal: (coerced.current_usage.provider_breakdown.gemini?.cost ?? 0) + (coerced.current_usage.provider_breakdown.huggingface?.cost ?? 0),
providerBreakdown: coerced.current_usage.provider_breakdown,
});