|
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | 5 |
|
6 | 6 | import { PromptElement, PromptSizing } from '@vscode/prompt-tsx'; |
7 | | -import { ConfigKey, IConfigurationService } from '../../../../platform/configuration/common/configurationService'; |
8 | 7 | import { IChatEndpoint } from '../../../../platform/networking/common/networking'; |
9 | | -import { IExperimentationService } from '../../../../platform/telemetry/common/nullExperimentationService'; |
10 | 8 | import { ToolName } from '../../../tools/common/toolNames'; |
11 | 9 | import { InstructionMessage } from '../base/instructionMessage'; |
12 | 10 | import { ResponseTranslationRules } from '../base/responseTranslationRules'; |
@@ -113,7 +111,7 @@ class DefaultAnthropicAgentPrompt extends PromptElement<DefaultAgentPromptProps> |
113 | 111 | } |
114 | 112 | } |
115 | 113 |
|
116 | | -class ClaudeSonnet45PromptV2 extends PromptElement<DefaultAgentPromptProps> { |
| 114 | +class Claude45DefaultPrompt extends PromptElement<DefaultAgentPromptProps> { |
117 | 115 | async render(state: void, sizing: PromptSizing) { |
118 | 116 | const tools = detectToolCapabilities(this.props.availableTools); |
119 | 117 |
|
@@ -210,24 +208,13 @@ class ClaudeSonnet45PromptV2 extends PromptElement<DefaultAgentPromptProps> { |
210 | 208 | } |
211 | 209 |
|
212 | 210 | class AnthropicPromptResolver implements IAgentPrompt { |
213 | | - constructor( |
214 | | - @IConfigurationService private readonly configurationService: IConfigurationService, |
215 | | - @IExperimentationService private readonly experimentationService: IExperimentationService, |
216 | | - ) { } |
217 | | - |
218 | 211 | static readonly familyPrefixes = ['claude', 'Anthropic']; |
219 | 212 |
|
220 | 213 | resolvePrompt(endpoint: IChatEndpoint): PromptConstructor | undefined { |
221 | 214 |
|
222 | 215 | if (endpoint.model?.startsWith('claude-sonnet-4.5') || |
223 | 216 | endpoint.model?.startsWith('claude-haiku-4.5')) { |
224 | | - const promptType = this.configurationService.getExperimentBasedConfig( |
225 | | - ConfigKey.ClaudeSonnet45AlternatePrompt, |
226 | | - this.experimentationService); |
227 | | - |
228 | | - if (promptType === 'v2') { |
229 | | - return ClaudeSonnet45PromptV2; |
230 | | - } |
| 217 | + return Claude45DefaultPrompt; |
231 | 218 | } |
232 | 219 | return DefaultAnthropicAgentPrompt; |
233 | 220 | } |
|
0 commit comments