Skip to content

Commit bfba65d

Browse files
authored
Merge pull request #2518 from microsoft/roblou/redundant-horse
AutoChatEndpoint is a CopilotChatEndpoint
2 parents 2670d2c + 576c515 commit bfba65d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/platform/endpoint/node/autoChatEndpoint.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { IInstantiationService } from '../../../util/vs/platform/instantiation/c
77
import { IAuthenticationService } from '../../authentication/common/authentication';
88
import { IChatMLFetcher } from '../../chat/common/chatMLFetcher';
99
import { IConfigurationService } from '../../configuration/common/configurationService';
10+
import { IEnvService } from '../../env/common/envService';
1011
import { ILogService } from '../../log/common/logService';
1112
import { IFetcherService } from '../../networking/common/fetcherService';
1213
import { IChatEndpoint } from '../../networking/common/networking';
@@ -17,12 +18,13 @@ import { ICAPIClientService } from '../common/capiClient';
1718
import { IDomainService } from '../common/domainService';
1819
import { IChatModelInformation } from '../common/endpointProvider';
1920
import { 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

Comments
 (0)