Skip to content

Commit e3fd37c

Browse files
committed
refactor: rename apply_diff_single_file to apply_diff for consistency
1 parent 0c48afc commit e3fd37c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/prompts/tools/native-tools/apply_diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const DIFF_PARAMETER_DESCRIPTION = `A string containing one or more search/repla
1111
[new content to replace with]
1212
>>>>>>> REPLACE`
1313

14-
export const apply_diff_single_file = {
14+
export const apply_diff = {
1515
type: "function",
1616
function: {
1717
name: "apply_diff",

src/core/prompts/tools/native-tools/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type OpenAI from "openai"
22
import accessMcpResource from "./access_mcp_resource"
3-
import { apply_diff_single_file } from "./apply_diff"
3+
import { apply_diff } from "./apply_diff"
44
import askFollowupQuestion from "./ask_followup_question"
55
import attemptCompletion from "./attempt_completion"
66
import browserAction from "./browser_action"
@@ -32,7 +32,7 @@ export { convertOpenAIToolToAnthropic, convertOpenAIToolsToAnthropic } from "./c
3232
export function getNativeTools(partialReadsEnabled: boolean = true): OpenAI.Chat.ChatCompletionTool[] {
3333
return [
3434
accessMcpResource,
35-
apply_diff_single_file,
35+
apply_diff,
3636
askFollowupQuestion,
3737
attemptCompletion,
3838
browserAction,

0 commit comments

Comments
 (0)