Kujtim Hoxha hace 10 meses
padre
commit
2b4441a0d1
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      internal/llm/prompt/prompt.go

+ 4 - 3
internal/llm/prompt/prompt.go

@@ -91,11 +91,11 @@ func processContextPaths(workDir string, paths []string) string {
 	}()
 
 	var (
-		results = make([]string, len(resultCh))
+		results = make([]string, 0)
 		i       int
 	)
 	for result := range resultCh {
-		results[i] = result
+		results = append(results, result)
 		i++
 	}
 
@@ -108,4 +108,5 @@ func processFile(filePath string) string {
 		return ""
 	}
 	return "# From:" + filePath + "\n" + string(content)
-}
+}
+