@@ -7,6 +7,7 @@ import { IInstantiationService } from '../../../util/vs/platform/instantiation/c
77import { IAuthenticationService } from '../../authentication/common/authentication' ;
88import { IChatMLFetcher } from '../../chat/common/chatMLFetcher' ;
99import { IConfigurationService } from '../../configuration/common/configurationService' ;
10+ import { IEnvService } from '../../env/common/envService' ;
1011import { ILogService } from '../../log/common/logService' ;
1112import { IFetcherService } from '../../networking/common/fetcherService' ;
1213import { IChatEndpoint } from '../../networking/common/networking' ;
@@ -17,12 +18,13 @@ import { ICAPIClientService } from '../common/capiClient';
1718import { IDomainService } from '../common/domainService' ;
1819import { IChatModelInformation } from '../common/endpointProvider' ;
1920import { ChatEndpoint } from './chatEndpoint' ;
21+ import { CopilotChatEndpoint } from './copilotChatEndpoint' ;
2022
2123/**
2224 * This endpoint represents the "Auto" model in the model picker.
2325 * It just effectively wraps a different endpoint and adds the auto stuff on top
2426 */
25- export class AutoChatEndpoint extends ChatEndpoint {
27+ export class AutoChatEndpoint extends CopilotChatEndpoint {
2628 public static readonly pseudoModelId = 'auto' ;
2729
2830 constructor (
@@ -33,6 +35,7 @@ export class AutoChatEndpoint extends ChatEndpoint {
3335 @IDomainService _domainService : IDomainService ,
3436 @ICAPIClientService _capiClientService : ICAPIClientService ,
3537 @IFetcherService _fetcherService : IFetcherService ,
38+ @IEnvService _envService : IEnvService ,
3639 @ITelemetryService _telemetryService : ITelemetryService ,
3740 @IAuthenticationService _authService : IAuthenticationService ,
3841 @IChatMLFetcher _chatMLFetcher : IChatMLFetcher ,
@@ -47,6 +50,7 @@ export class AutoChatEndpoint extends ChatEndpoint {
4750 _domainService ,
4851 _capiClientService ,
4952 _fetcherService ,
53+ _envService ,
5054 _telemetryService ,
5155 _authService ,
5256 _chatMLFetcher ,
0 commit comments