fix: make semantic file types extension optional in PR description

This commit is contained in:
mrT23
2024-12-29 21:43:46 +02:00
parent 39a375b3e4
commit 6a145af159

View File

@ -207,7 +207,8 @@ class PRDescription:
self.prediction = await self._get_prediction(model, patches_diff, prompt="pr_description_prompt") self.prediction = await self._get_prediction(model, patches_diff, prompt="pr_description_prompt")
# extend the prediction with additional files not shown # extend the prediction with additional files not shown
self.prediction = await self.extend_uncovered_files(self.prediction) if get_settings().pr_description.enable_semantic_files_types:
self.prediction = await self.extend_uncovered_files(self.prediction)
else: else:
get_logger().error(f"Error getting PR diff {self.pr_id}", get_logger().error(f"Error getting PR diff {self.pr_id}",
artifact={"traceback": traceback.format_exc()}) artifact={"traceback": traceback.format_exc()})