@@ -12,7 +12,7 @@ import { IBlockedExtensionService } from '../../../platform/chat/common/blockedE
12
12
import { ChatFetchResponseType , ChatLocation , getErrorDetailsFromChatFetchError } from '../../../platform/chat/common/commonTypes' ;
13
13
import { getTextPart } from '../../../platform/chat/common/globalStringUtils' ;
14
14
import { EmbeddingType , getWellKnownEmbeddingTypeInfo , IEmbeddingsComputer } from '../../../platform/embeddings/common/embeddingsComputer' ;
15
- import { AutoChatEndpoint , isAutoModelDefault } from '../../../platform/endpoint/common/autoChatEndpoint' ;
15
+ import { AutoChatEndpoint } from '../../../platform/endpoint/common/autoChatEndpoint' ;
16
16
import { IAutomodeService } from '../../../platform/endpoint/common/automodeService' ;
17
17
import { IEndpointProvider } from '../../../platform/endpoint/common/endpointProvider' ;
18
18
import { CustomDataPartMimeTypes } from '../../../platform/endpoint/common/endpointTypes' ;
@@ -58,7 +58,6 @@ export class LanguageModelAccess extends Disposable implements IExtensionContrib
58
58
@IEndpointProvider private readonly _endpointProvider : IEndpointProvider ,
59
59
@IEmbeddingsComputer private readonly _embeddingsComputer : IEmbeddingsComputer ,
60
60
@IVSCodeExtensionContext private readonly _vsCodeExtensionContext : IVSCodeExtensionContext ,
61
- @IExperimentationService private readonly _expService : IExperimentationService ,
62
61
@IAutomodeService private readonly _automodeService : IAutomodeService
63
62
) {
64
63
super ( ) ;
@@ -113,7 +112,8 @@ export class LanguageModelAccess extends Disposable implements IExtensionContrib
113
112
let defaultChatEndpoint = chatEndpoints . find ( e => e . isDefault ) ?? await this . _endpointProvider . getChatEndpoint ( 'gpt-4.1' ) ?? chatEndpoints [ 0 ] ;
114
113
const autoEndpoint = await this . _automodeService . resolveAutoModeEndpoint ( undefined , chatEndpoints ) ;
115
114
chatEndpoints . push ( autoEndpoint ) ;
116
- if ( isAutoModelDefault ( this . _expService , this . _authenticationService ) ) {
115
+ // No Auth users always get Auto as the default model
116
+ if ( this . _authenticationService . copilotToken ?. isNoAuthUser ) {
117
117
defaultChatEndpoint = autoEndpoint ;
118
118
}
119
119
const seenFamilies = new Set < string > ( ) ;
0 commit comments