Skip to content

Commit

Permalink
Update generation_types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored Feb 18, 2025
1 parent a7e1928 commit 0530774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/generativeai/types/generation_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def text(self):
texts.extend([f"```{outcome_result}", part.code_execution_result.output, "```"])
continue

part_type = protos.Part.pb(part).whichOneof("data")
part_type = protos.Part.pb(part).WhichOneof("data")
raise ValueError(f"Could not convert `part.{part_type}` to text.")

return "\n".join(texts)
Expand Down

0 comments on commit 0530774

Please sign in to comment.