We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5103eb commit be00c19Copy full SHA for be00c19
google/generativeai/types/generation_types.py
@@ -473,8 +473,6 @@ def text(self):
473
"`Part`, but none were returned. The candidate's "
474
f"[finish_reason](https://ai.google.dev/api/generate-content#finishreason) is {fr}."
475
)
476
- if candidate.finish_message:
477
- msg += 'The `finish_message` is "{candidate.finish_message}".'
478
479
if fr is FinishReason.FINISH_REASON_UNSPECIFIED:
480
raise ValueError(msg)
0 commit comments