summaryrefslogtreecommitdiffhomepage
path: root/internal/llm
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-14 15:48:01 +0200
committerKujtim Hoxha <[email protected]>2025-04-21 13:41:27 +0200
commit013694832f4c5a7819bfd9a801346e4c3fb22e77 (patch)
tree3d3d9547c419eef41be1d6212c8921e935acc41b /internal/llm
parent0130bde1edabb81d82dbce9d2d562966d2dee133 (diff)
downloadopencode-013694832f4c5a7819bfd9a801346e4c3fb22e77.tar.gz
opencode-013694832f4c5a7819bfd9a801346e4c3fb22e77.zip
fix diff
Diffstat (limited to 'internal/llm')
-rw-r--r--internal/llm/tools/edit.go3
-rw-r--r--internal/llm/tools/write.go1
2 files changed, 0 insertions, 4 deletions
diff --git a/internal/llm/tools/edit.go b/internal/llm/tools/edit.go
index 1305879b9..08d6d446c 100644
--- a/internal/llm/tools/edit.go
+++ b/internal/llm/tools/edit.go
@@ -186,7 +186,6 @@ func (e *editTool) createNewFile(ctx context.Context, filePath, content string)
"",
content,
filePath,
- filePath,
)
p := e.permissions.Request(
permission.CreatePermissionRequest{
@@ -277,7 +276,6 @@ func (e *editTool) deleteContent(ctx context.Context, filePath, oldString string
oldContent,
newContent,
filePath,
- filePath,
)
p := e.permissions.Request(
@@ -367,7 +365,6 @@ func (e *editTool) replaceContent(ctx context.Context, filePath, oldString, newS
oldContent,
newContent,
filePath,
- filePath,
)
p := e.permissions.Request(
permission.CreatePermissionRequest{
diff --git a/internal/llm/tools/write.go b/internal/llm/tools/write.go
index ef2ca01f4..889561d2a 100644
--- a/internal/llm/tools/write.go
+++ b/internal/llm/tools/write.go
@@ -154,7 +154,6 @@ func (w *writeTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error
oldContent,
params.Content,
filePath,
- filePath,
)
p := w.permissions.Request(
permission.CreatePermissionRequest{