164
return localize({ key: 'chatError.rateLimit.server', comment: [`{Locked=']({'}`] }, "Sorry, you have been rate-limited. Please wait {0} before trying again or consider switching to Auto. [Learn More]({1})\n\nServer Error: {2}\nError Code: {3}", retryAfterString, RATE_LIMIT_LEARN_MORE_URL, fetchError.capiError.message, fetchError.capiError.code);
165
}
167
>
if (fetchError.isAuto) {
168
return localize({ key: 'chatError.rateLimit.genericAuto', comment: [`{Locked=']({'}`] }, "Sorry, your request was rate-limited. Please wait {0} before trying again. [Learn More]({1})", retryAfterString, RATE_LIMIT_LEARN_MORE_URL);
169
}
170
>
return localize({ key: 'chatError.rateLimit.generic', comment: [`{Locked=']({'}`] }, "Sorry, your request was rate-limited. Please wait {0} before trying again or consider switching to Auto. [Learn More]({1})", retryAfterString, RATE_LIMIT_LEARN_MORE_URL);
chatErrorMessages.ts
171
>
}
172
173
export function getQuotaMessageForPlan(copilotPlan: string | undefined, isUsageBasedBilling?: boolean, quotaResetDate?: string): string {