Skip to content

Commit

Permalink
Fix Typo.
Browse files Browse the repository at this point in the history
Fixes: #626
  • Loading branch information
MarkDaoust authored Nov 12, 2024
1 parent 0e5c5f2 commit 162d287
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 @@ -526,7 +526,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 162d287

Please sign in to comment.