Skip to content

Commit ea6617a

Browse files
committed
refactor: simplify daily quota error messages
1 parent 6db64aa commit ea6617a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/utils/googleQuotaErrors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function classifyGoogleError(error: unknown): unknown {
9696
const quotaId = violation.quotaId ?? '';
9797
if (quotaId.includes('PerDay') || quotaId.includes('Daily')) {
9898
return new TerminalQuotaError(
99-
`${googleApiError.message}\nExpected quota reset within 24h.`,
99+
`You have exhausted your daily quota on this model.`,
100100
googleApiError,
101101
);
102102
}
@@ -139,7 +139,7 @@ export function classifyGoogleError(error: unknown): unknown {
139139
const quotaLimit = errorInfo.metadata?.['quota_limit'] ?? '';
140140
if (quotaLimit.includes('PerDay') || quotaLimit.includes('Daily')) {
141141
return new TerminalQuotaError(
142-
`${googleApiError.message}\nExpected quota reset within 24h.`,
142+
`You have exhausted your daily quota on this model.`,
143143
googleApiError,
144144
);
145145
}

0 commit comments

Comments
 (0)