mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: use actual confidence threshold
This commit is contained in:
parent
c710f558f6
commit
9857e31e9c
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ Your diff here
|
|||
const contextStr = prepareSearchString(hunk.changes)
|
||||
const { index: matchPosition, confidence, strategy } = findBestMatch(contextStr, result, 0, this.confidenceThreshold)
|
||||
|
||||
if (confidence < 1.1) {
|
||||
if (confidence < this.confidenceThreshold) {
|
||||
console.log('Full hunk application failed, trying sub-hunks strategy')
|
||||
// Try splitting the hunk into smaller hunks
|
||||
const subHunks = this.splitHunk(hunk)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue