-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use the SFT + RL CAPI proxy model to power the Search Subagent #2929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
c6f44b4
b62b634
070482e
2924441
2d3d3b7
5d9def6
698347d
45db865
b690565
a16cafb
2872229
b6d5f8f
a5bebeb
f8b023c
571a515
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,75 @@ | ||||||
| /*--------------------------------------------------------------------------------------------- | ||||||
| * Copyright (c) Microsoft Corporation. All rights reserved. | ||||||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||||||
| *--------------------------------------------------------------------------------------------*/ | ||||||
|
|
||||||
| import { RequestType } from '@vscode/copilot-api'; | ||||||
| import { TokenizerType } from '../../../util/common/tokenizer'; | ||||||
| import { IInstantiationService } from '../../../util/vs/platform/instantiation/common/instantiation'; | ||||||
| import { IAuthenticationService } from '../../authentication/common/authentication'; | ||||||
| import { IChatMLFetcher } from '../../chat/common/chatMLFetcher'; | ||||||
| import { IConfigurationService } from '../../configuration/common/configurationService'; | ||||||
| import { ILogService } from '../../log/common/logService'; | ||||||
| import { IFetcherService } from '../../networking/common/fetcherService'; | ||||||
| import { IExperimentationService } from '../../telemetry/common/nullExperimentationService'; | ||||||
| import { ITelemetryService } from '../../telemetry/common/telemetry'; | ||||||
| import { ITokenizerProvider } from '../../tokenizer/node/tokenizer'; | ||||||
| import { ICAPIClientService } from '../common/capiClient'; | ||||||
| import { IDomainService } from '../common/domainService'; | ||||||
| import { IChatModelInformation } from '../common/endpointProvider'; | ||||||
| import { ChatEndpoint } from './chatEndpoint'; | ||||||
|
|
||||||
| export class ProxyAgenticSearchEndpoint extends ChatEndpoint { | ||||||
|
|
||||||
| constructor( | ||||||
| @IDomainService domainService: IDomainService, | ||||||
| @ICAPIClientService capiClientService: ICAPIClientService, | ||||||
| @IFetcherService fetcherService: IFetcherService, | ||||||
| @ITelemetryService telemetryService: ITelemetryService, | ||||||
| @IAuthenticationService authService: IAuthenticationService, | ||||||
| @IChatMLFetcher chatMLFetcher: IChatMLFetcher, | ||||||
| @ITokenizerProvider tokenizerProvider: ITokenizerProvider, | ||||||
| @IInstantiationService instantiationService: IInstantiationService, | ||||||
| @IConfigurationService configurationService: IConfigurationService, | ||||||
| @IExperimentationService experimentationService: IExperimentationService, | ||||||
| @ILogService logService: ILogService, | ||||||
| ) { | ||||||
| const model = 'agentic-search-v1'; | ||||||
| const modelInfo: IChatModelInformation = { | ||||||
| id: model, | ||||||
| name: model, | ||||||
| version: 'unknown', | ||||||
| model_picker_enabled: false, | ||||||
| is_chat_default: false, | ||||||
| is_chat_fallback: false, | ||||||
| capabilities: { | ||||||
| type: 'chat', | ||||||
| family: model, | ||||||
| tokenizer: TokenizerType.O200K, | ||||||
|
||||||
| tokenizer: TokenizerType.O200K, | |
| tokenizer: TokenizerType.Unknown, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
endpointProviderparameter is no longer used in this class after the refactoring to always useProxyAgenticSearchEndpoint. This parameter should be removed from the constructor entirely, along with the corresponding parameter in thesuper()call on line 49. The base classToolCallingLoopstill requires it, but this derived class doesn't need to accept it as a constructor parameter.