Skip to content

Commit

Permalink
fix google
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Sep 12, 2024
1 parent 8e5ee64 commit 5fa42f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elleelleaime/evaluate/strategies/google/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def _evaluate_impl(self, bug: Bug, sample: dict) -> Optional[List[dict]]:

for generation in sample["generation"]:
for candidate in generation["candidates"]:
if "content" not in candidate:
evaluation.append(None)
continue
candidate_patch = candidate["content"]["parts"][0]["text"]
candidate_patch = self.extract_patch_from_message(candidate_patch)
evaluation.append(
Expand Down

0 comments on commit 5fa42f5

Please sign in to comment.