mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
Replace SearchReplaceDiffStrategy with NewUnifiedDiffStrategy in getDiffStrategy function
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user