Skip to content

Commit

Permalink
fix: handle google exceptions and add backoff (#154)
Browse files Browse the repository at this point in the history
* fix: handle google exceptions and add backoff

* add backoff

* fix google
  • Loading branch information
andre15silva authored Sep 12, 2024
1 parent db9c43b commit d35b953
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 d35b953

Please sign in to comment.