File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/platform/endpoint/common Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ export function modelPrefersInstructionsAfterHistory(modelFamily: string) {
113113 * Model supports apply_patch as an edit tool.
114114 */
115115export function modelSupportsApplyPatch ( model : LanguageModelChat | IChatEndpoint ) : boolean {
116+ // only using replace string as edit tool, disable apply_patch for VSC Model C
117+ if ( isVSCModelC ( model ) ) {
118+ return false ;
119+ }
116120 return ( model . family . startsWith ( 'gpt' ) && ! model . family . includes ( 'gpt-4o' ) ) || model . family === 'o4-mini' || model . family === 'arctic-fox' || isVSCModelA ( model ) || isVSCModelB ( model ) || isHiddenModelB ( model . family ) ;
117121}
118122
@@ -172,6 +176,10 @@ export function modelCanUseImageURL(model: LanguageModelChat | IChatEndpoint): b
172176 * without needing insert_edit_into_file.
173177 */
174178export function modelCanUseApplyPatchExclusively ( model : LanguageModelChat | IChatEndpoint ) : boolean {
179+ // only using replace string as edit tool, disable apply_patch for VSC Model C
180+ if ( isVSCModelC ( model ) ) {
181+ return false ;
182+ }
175183 return isGpt5PlusFamily ( model ) || isVSCModelA ( model ) || isVSCModelB ( model ) ;
176184}
177185
You can’t perform that action at this time.
0 commit comments