@@ -184,9 +184,9 @@ export function getModelUsageSummary(data: CopilotUsageData[]): ModelUsageSummar
184184 compliantRequests : 0 ,
185185 exceedingRequests : 0 ,
186186 multiplier,
187- individualPlanLimit : multiplier === 0 ? Infinity : Math . floor ( PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . INDIVIDUAL ] / multiplier ) ,
188- businessPlanLimit : multiplier === 0 ? Infinity : Math . floor ( PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . BUSINESS ] / multiplier ) ,
189- enterprisePlanLimit : multiplier === 0 ? Infinity : Math . floor ( PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . ENTERPRISE ] / multiplier ) ,
187+ individualPlanLimit : PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . INDIVIDUAL ] ,
188+ businessPlanLimit : PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . BUSINESS ] ,
189+ enterprisePlanLimit : PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . ENTERPRISE ] ,
190190 excessCost : 0
191191 } ;
192192 }
@@ -219,12 +219,12 @@ export function getModelUsageSummary(data: CopilotUsageData[]): ModelUsageSummar
219219 groupedSummary [ key ] . exceedingRequests += item . exceedingRequests ;
220220 }
221221
222- // For grouped default models, ensure multiplier is 0 and limits are set correctly
222+ // For grouped default models, ensure multiplier is 0 and limits use constant values
223223 if ( key === 'Default' ) {
224224 groupedSummary [ key ] . multiplier = 0 ;
225- groupedSummary [ key ] . individualPlanLimit = Infinity ;
226- groupedSummary [ key ] . businessPlanLimit = Infinity ;
227- groupedSummary [ key ] . enterprisePlanLimit = Infinity ;
225+ groupedSummary [ key ] . individualPlanLimit = PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . INDIVIDUAL ] ;
226+ groupedSummary [ key ] . businessPlanLimit = PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . BUSINESS ] ;
227+ groupedSummary [ key ] . enterprisePlanLimit = PLAN_MONTHLY_LIMITS [ COPILOT_PLANS . ENTERPRISE ] ;
228228 }
229229
230230 // Calculate excess cost
0 commit comments