mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Replace SearchReplaceDiffStrategy with NewUnifiedDiffStrategy in getDiffStrategy function
This commit is contained in:
parent
612d7020f3
commit
420c6c72dd
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import type { DiffStrategy } from './types'
|
||||
import { UnifiedDiffStrategy } from './strategies/unified'
|
||||
import { SearchReplaceDiffStrategy } from './strategies/search-replace'
|
||||
import { NewUnifiedDiffStrategy } from './strategies/new-unified'
|
||||
/**
|
||||
* Get the appropriate diff strategy for the given model
|
||||
* @param model The name of the model being used (e.g., 'gpt-4', 'claude-3-opus')
|
||||
|
|
@ -9,7 +10,7 @@ import { SearchReplaceDiffStrategy } from './strategies/search-replace'
|
|||
export function getDiffStrategy(model: string, fuzzyMatchThreshold?: number): DiffStrategy {
|
||||
// For now, return SearchReplaceDiffStrategy for all models
|
||||
// This architecture allows for future optimizations based on model capabilities
|
||||
return new SearchReplaceDiffStrategy(fuzzyMatchThreshold ?? 1.0)
|
||||
return new NewUnifiedDiffStrategy()
|
||||
}
|
||||
|
||||
export type { DiffStrategy }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue