Skip to content

Commit 2b4441a

Browse files
committed
fix context
1 parent 8f3a94d commit 2b4441a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/llm/prompt/prompt.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ func processContextPaths(workDir string, paths []string) string {
9191
}()
9292

9393
var (
94-
results = make([]string, len(resultCh))
94+
results = make([]string, 0)
9595
i int
9696
)
9797
for result := range resultCh {
98-
results[i] = result
98+
results = append(results, result)
9999
i++
100100
}
101101

@@ -108,4 +108,5 @@ func processFile(filePath string) string {
108108
return ""
109109
}
110110
return "# From:" + filePath + "\n" + string(content)
111-
}
111+
}
112+

0 commit comments

Comments
 (0)