Skip to content

Commit f9053ae

Browse files
authored
* Update generation_types.py * IDK how this test is failing, but it shouldn't be here Change-Id: Ifd983a42a18f14df3c3b5dd8d4ac098a0e2bcf76
1 parent 6e42689 commit f9053ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/types/generation_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def text(self):
532532
texts.extend([f"```{outcome_result}", part.code_execution_result.output, "```"])
533533
continue
534534

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

538538
return "\n".join(texts)

0 commit comments

Comments
 (0)