mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Batch code segments when using ollama to report progress (#3968)
fix: batch code segments when using ollama
This commit is contained in:
parent
78b7455a05
commit
977fa26e01
1 changed files with 2 additions and 5 deletions
|
|
@ -145,11 +145,8 @@ export class DirectoryScanner implements IDirectoryScanner {
|
|||
})
|
||||
}
|
||||
|
||||
// Check if batch threshold is met and not for Ollama
|
||||
if (
|
||||
currentBatchBlocks.length >= BATCH_SEGMENT_THRESHOLD &&
|
||||
this.embedder.embedderInfo.name !== "ollama"
|
||||
) {
|
||||
// Check if batch threshold is met
|
||||
if (currentBatchBlocks.length >= BATCH_SEGMENT_THRESHOLD) {
|
||||
// Copy current batch data and clear accumulators
|
||||
const batchBlocks = [...currentBatchBlocks]
|
||||
const batchTexts = [...currentBatchTexts]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue