Skip to content

Commit 1671263

Browse files
authored
models - update description for auto when no auth (#1162)
1 parent 15a8ec7 commit 1671263

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/extension/conversation/vscode-node/languageModelAccess.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ export class LanguageModelAccess extends Disposable implements IExtensionContrib
130130
const sanitizedModelName = endpoint.name.replace(/\(Preview\)/g, '').trim();
131131
let modelDescription: string | undefined;
132132
if (endpoint.model === AutoChatEndpoint.id) {
133-
modelDescription = localize('languageModel.autoTooltip', 'Auto selects the best model for your request based on capacity and performance. Counted at 0x-0.9x the request rate, depending on the model.');
133+
if (this._authenticationService.copilotToken?.isNoAuthUser) {
134+
modelDescription = localize('languageModel.autoTooltipNoAuth', 'Auto selects the best model for your request based on capacity and performance.');
135+
} else {
136+
modelDescription = localize('languageModel.autoTooltip', 'Auto selects the best model for your request based on capacity and performance. Counted at 0x-0.9x the request rate, depending on the model.');
137+
}
134138
} else if (endpoint.multiplier) {
135139
modelDescription = localize('languageModel.costTooltip', '{0} ({1}) is counted at a {2}x rate.', sanitizedModelName, endpoint.version, endpoint.multiplier);
136140
} else if (endpoint.isFallback && endpoint.multiplier === 0) {

0 commit comments

Comments
 (0)