mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Drop threshold to 5%.
This commit is contained in:
@@ -47,7 +47,7 @@ import { debugLogger } from '../utils/debugLogger.js';
|
|||||||
import levenshtein from 'fast-levenshtein';
|
import levenshtein from 'fast-levenshtein';
|
||||||
|
|
||||||
const ENABLE_FUZZY_MATCH_RECOVERY = true;
|
const ENABLE_FUZZY_MATCH_RECOVERY = true;
|
||||||
const FUZZY_MATCH_THRESHOLD = 0.15; // Allow up to 15% weighted difference
|
const FUZZY_MATCH_THRESHOLD = 0.05; // Allow up to 5% weighted difference
|
||||||
const WHITESPACE_PENALTY_FACTOR = 0.1; // Whitespace differences cost 10% of a character difference
|
const WHITESPACE_PENALTY_FACTOR = 0.1; // Whitespace differences cost 10% of a character difference
|
||||||
|
|
||||||
interface ReplacementContext {
|
interface ReplacementContext {
|
||||||
|
|||||||
Reference in New Issue
Block a user