Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,7 @@ export class LanguageModelAccess extends Disposable implements IExtensionContrib
if (endpoint.degradationReason) {
modelTooltip = endpoint.degradationReason;
} else if (endpoint instanceof AutoChatEndpoint) {
if (this._authenticationService.copilotToken?.isNoAuthUser || (endpoint.discountRange.low === 0 && endpoint.discountRange.high === 0)) {
modelTooltip = vscode.l10n.t('Auto selects the best model for your request based on capacity and performance.');
} else if (endpoint.discountRange.low === endpoint.discountRange.high) {
modelTooltip = vscode.l10n.t('Auto selects the best model for your request based on capacity and performance. Auto is given a {0}% discount.', endpoint.discountRange.low * 100);
} else {
modelTooltip = vscode.l10n.t('Auto selects the best model for your request based on capacity and performance. Auto is given a {0}% to {1}% discount.', endpoint.discountRange.low * 100, endpoint.discountRange.high * 100);
}
modelTooltip = vscode.l10n.t('Auto selects the best model for your request based on capacity and performance.');
} else {
modelTooltip = getModelCapabilitiesDescription(endpoint);
}
Expand Down
Loading