File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments