Skip to content

Commit be00c19

Browse files
authored
Remove finish_message (#571)
Change-Id: I55f8339aea7e71e0b073c1a2ef9b3748500e09ed
1 parent d5103eb commit be00c19

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

google/generativeai/types/generation_types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,6 @@ def text(self):
473473
"`Part`, but none were returned. The candidate's "
474474
f"[finish_reason](https://ai.google.dev/api/generate-content#finishreason) is {fr}."
475475
)
476-
if candidate.finish_message:
477-
msg += 'The `finish_message` is "{candidate.finish_message}".'
478476

479477
if fr is FinishReason.FINISH_REASON_UNSPECIFIED:
480478
raise ValueError(msg)

0 commit comments

Comments
 (0)