parallel_calls

This commit is contained in:
mrT23
2024-02-07 08:00:16 +02:00
parent a7ce2b11b4
commit b077873c3d

View File

@ -240,7 +240,7 @@ class PRCodeSuggestions:
prediction_list = []
for i, patches_diff in enumerate(patches_diff_list):
get_logger().info(f"Processing chunk {i + 1} of {len(patches_diff_list)}")
prediction = await self._get_prediction(model, patches_diff) # toDo: parallelize
prediction = await self._get_prediction(model, patches_diff)
prediction_list.append(prediction)
data = {}