Skip to content

Commit

Permalink
fix: update chat interaction terminology (#235369)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Dec 5, 2024
1 parent 309454f commit c5001f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vs/workbench/contrib/chat/browser/chatQuotasService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ export class ChatQuotasService extends Disposable implements IChatQuotasService
let message: string;
const { chatQuotaExceeded, completionsQuotaExceeded } = that.quotas;
if (chatQuotaExceeded && !completionsQuotaExceeded) {
message = localize('chatQuotaExceeded', "You've run out of free chat interactions. You still have free code completions available in the Copilot Free plan. These limits will reset on {0}", dateFormatter.format(that.quotas.quotaResetDate));
message = localize('chatQuotaExceeded', "You've run out of free chat messages. You still have free code completions available in the Copilot Free plan. These limits will reset on {0}", dateFormatter.format(that.quotas.quotaResetDate));
} else if (completionsQuotaExceeded && !chatQuotaExceeded) {
message = localize('completionsQuotaExceeded', "You've run out of free code completions. You still have free chat interactions available in the Copilot Free plan. These limits will reset on {0}", dateFormatter.format(that.quotas.quotaResetDate));
message = localize('completionsQuotaExceeded', "You've run out of free code completions. You still have free chat messages available in the Copilot Free plan. These limits will reset on {0}", dateFormatter.format(that.quotas.quotaResetDate));
} else {
message = localize('chatAndCompletionsQuotaExceeded', "You've reached the limit of the Copilot Free plan. These limits will reset on {0}.", dateFormatter.format(that.quotas.quotaResetDate));
}

const upgradeToPro = localize('upgradeToPro', "Here's what you can expect when upgrading to Copilot Pro:\n- Unlimited code completions\n- Unlimited chat interactions\n- 30-day free trial");
const upgradeToPro = localize('upgradeToPro', "Here's what you can expect when upgrading to Copilot Pro:\n- Unlimited code completions\n- Unlimited chat messages\n- 30-day free trial");

await dialogService.prompt({
type: 'none',
Expand Down Expand Up @@ -264,7 +264,7 @@ export class ChatQuotasStatusBarEntry extends Disposable implements IWorkbenchCo

export function quotaToButtonMessage({ chatQuotaExceeded, completionsQuotaExceeded }: { chatQuotaExceeded: boolean; completionsQuotaExceeded: boolean }): string {
if (chatQuotaExceeded && !completionsQuotaExceeded) {
return localize('chatQuotaExceededButton', "You've reached your monthly chat interactions limit, click for details");
return localize('chatQuotaExceededButton', "You've reached your monthly chat messages limit, click for details");
} else if (completionsQuotaExceeded && !chatQuotaExceeded) {
return localize('completionsQuotaExceededButton', "You've reached your monthly code completions limit, click for details");
} else {
Expand Down

0 comments on commit c5001f6

Please sign in to comment.