Skip to content

Commit

Permalink
fix: Add MAX_TOKENS to the list of successful finish reasons for Rapi…
Browse files Browse the repository at this point in the history
…d Evaluation SDK

PiperOrigin-RevId: 631138372
  • Loading branch information
jsondai authored and Copybara-Service committed May 6, 2024
1 parent b0c5eda commit 195c77e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vertexai/preview/evaluation/_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
}
_SUCCESSFUL_FINISH_REASONS = [
gapic_content_types.Candidate.FinishReason.STOP,
gapic_content_types.Candidate.FinishReason.MAX_TOKENS,
# Many responses have this finish reason
gapic_content_types.Candidate.FinishReason.FINISH_REASON_UNSPECIFIED,
]
Expand Down

0 comments on commit 195c77e

Please sign in to comment.