@@ -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 , isAutoModelEnabled } from '../../../platform/endpoint/common/autoChatEndpoint' ;
15
+ import { AutoChatEndpoint , isAutoModelDefault } 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' ;
@@ -59,8 +59,7 @@ export class LanguageModelAccess extends Disposable implements IExtensionContrib
59
59
@IEmbeddingsComputer private readonly _embeddingsComputer : IEmbeddingsComputer ,
60
60
@IVSCodeExtensionContext private readonly _vsCodeExtensionContext : IVSCodeExtensionContext ,
61
61
@IExperimentationService private readonly _expService : IExperimentationService ,
62
- @IAutomodeService private readonly _automodeService : IAutomodeService ,
63
- @IEnvService private readonly _envService : IEnvService
62
+ @IAutomodeService private readonly _automodeService : IAutomodeService
64
63
) {
65
64
super ( ) ;
66
65
@@ -112,12 +111,10 @@ export class LanguageModelAccess extends Disposable implements IExtensionContrib
112
111
const chatEndpoints = await this . _endpointProvider . getAllChatEndpoints ( ) ;
113
112
114
113
let defaultChatEndpoint = chatEndpoints . find ( e => e . isDefault ) ?? await this . _endpointProvider . getChatEndpoint ( 'gpt-4.1' ) ?? chatEndpoints [ 0 ] ;
115
- if ( await isAutoModelEnabled ( this . _expService , this . _envService , this . _authenticationService ) ) {
116
- const autoEndpoint = await this . _automodeService . resolveAutoModeEndpoint ( undefined , chatEndpoints ) ;
117
- chatEndpoints . push ( autoEndpoint ) ;
118
- if ( isAutoModelDefault ( this . _expService , this . _authenticationService ) ) {
119
- defaultChatEndpoint = autoEndpoint ;
120
- }
114
+ const autoEndpoint = await this . _automodeService . resolveAutoModeEndpoint ( undefined , chatEndpoints ) ;
115
+ chatEndpoints . push ( autoEndpoint ) ;
116
+ if ( isAutoModelDefault ( this . _expService , this . _authenticationService ) ) {
117
+ defaultChatEndpoint = autoEndpoint ;
121
118
}
122
119
const seenFamilies = new Set < string > ( ) ;
123
120
0 commit comments