-
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
base: main
Are you sure you want to change the base?
Changes from all commits
c6f44b4
b62b634
070482e
2924441
2d3d3b7
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
||here is odd because if the settingSearchSubagentToolEnabledis disabled, then shouldn't the tool be disabled?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.
Please see microsoft/vscode#291154 too