Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/platform/endpoint/common/chatModelCapabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export function modelPrefersInstructionsAfterHistory(modelFamily: string) {
* Model supports apply_patch as an edit tool.
*/
export function modelSupportsApplyPatch(model: LanguageModelChat | IChatEndpoint): boolean {
// only using replace string as edit tool, disable apply_patch for VSC Model C
if (isVSCModelC(model)) {
return false;
}
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);
}

Expand Down Expand Up @@ -163,6 +167,10 @@ export function modelCanUseImageURL(model: LanguageModelChat | IChatEndpoint): b
* without needing insert_edit_into_file.
*/
export function modelCanUseApplyPatchExclusively(model: LanguageModelChat | IChatEndpoint): boolean {
// only using replace string as edit tool, disable apply_patch for VSC Model C
if (isVSCModelC(model)) {
return false;
}
return isGpt5PlusFamily(model) || isVSCModelA(model) || isVSCModelB(model);
}

Expand Down