From 31c5761e065dbb983384aa6164c8a47e112544d5 Mon Sep 17 00:00:00 2001 From: Gaurav <39389231+gsquared94@users.noreply.github.com> Date: Fri, 31 Oct 2025 10:49:32 -0700 Subject: [PATCH] refactor: simplify daily quota error messages (#12386) --- packages/core/src/utils/googleQuotaErrors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/utils/googleQuotaErrors.ts b/packages/core/src/utils/googleQuotaErrors.ts index 4de1a81710..55c5d29a8a 100644 --- a/packages/core/src/utils/googleQuotaErrors.ts +++ b/packages/core/src/utils/googleQuotaErrors.ts @@ -96,7 +96,7 @@ export function classifyGoogleError(error: unknown): unknown { const quotaId = violation.quotaId ?? ''; if (quotaId.includes('PerDay') || quotaId.includes('Daily')) { return new TerminalQuotaError( - `${googleApiError.message}\nExpected quota reset within 24h.`, + `You have exhausted your daily quota on this model.`, googleApiError, ); } @@ -139,7 +139,7 @@ export function classifyGoogleError(error: unknown): unknown { const quotaLimit = errorInfo.metadata?.['quota_limit'] ?? ''; if (quotaLimit.includes('PerDay') || quotaLimit.includes('Daily')) { return new TerminalQuotaError( - `${googleApiError.message}\nExpected quota reset within 24h.`, + `You have exhausted your daily quota on this model.`, googleApiError, ); }