There was an error while loading. Please reload this page.
1 parent 0c498c5 commit a9f1c20Copy full SHA for a9f1c20
vertexai/generative_models/_generative_models.py
@@ -1829,8 +1829,8 @@ def _append_gapic_candidate(
1829
raise ValueError(
1830
f"Incorrect candidate indexes: {base_candidate.index} != {new_candidate.index}"
1831
)
1832
-
1833
- _append_gapic_content(base_candidate.content, new_candidate.content)
+ if new_candidate.content:
+ _append_gapic_content(base_candidate.content, new_candidate.content)
1834
1835
# For these attributes, the last value wins
1836
if new_candidate.finish_reason:
0 commit comments