summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/tools/patch.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-21 07:20:09 +0200
committerKujtim Hoxha <[email protected]>2025-04-21 13:42:29 +0200
commit1da298e7554bab0f7a631a44fed12692d668c024 (patch)
treebf8c3ed766373802d92d6cfca7d923e16ebcf258 /internal/llm/tools/patch.go
parentc40e68496d4ed5a7db47879376dec293a9e82856 (diff)
downloadopencode-1da298e7554bab0f7a631a44fed12692d668c024.tar.gz
opencode-1da298e7554bab0f7a631a44fed12692d668c024.zip
fix anthropic
Diffstat (limited to 'internal/llm/tools/patch.go')
-rw-r--r--internal/llm/tools/patch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/tools/patch.go b/internal/llm/tools/patch.go
index 0f879462c..92eab6929 100644
--- a/internal/llm/tools/patch.go
+++ b/internal/llm/tools/patch.go
@@ -169,7 +169,7 @@ func (p *patchTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error
return NewTextErrorResponse(fmt.Sprintf("failed to parse patch: %s", err)), nil
}
- if fuzz > 0 {
+ if fuzz > 3 {
return NewTextErrorResponse(fmt.Sprintf("patch contains fuzzy matches (fuzz level: %d). Please make your context lines more precise", fuzz)), nil
}