Skip to content

Commit

Permalink
Remove finish_message
Browse files Browse the repository at this point in the history
Change-Id: I55f8339aea7e71e0b073c1a2ef9b3748500e09ed
  • Loading branch information
MarkDaoust committed Sep 25, 2024
1 parent 8f7f5cb commit 114c5bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions google/generativeai/types/generation_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ def text(self):
"`Part`, but none were returned. The candidate's "
f"[finish_reason](https://ai.google.dev/api/generate-content#finishreason) is {fr}."
)
if candidate.finish_message:
msg += 'The `finish_message` is "{candidate.finish_message}".'

if fr is FinishReason.FINISH_REASON_UNSPECIFIED:
raise ValueError(msg)
Expand Down

0 comments on commit 114c5bb

Please sign in to comment.