Skip to content

Commit 195c77e

Browse files
jsondaicopybara-github
authored andcommitted
fix: Add MAX_TOKENS to the list of successful finish reasons for Rapid Evaluation SDK
PiperOrigin-RevId: 631138372
1 parent b0c5eda commit 195c77e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vertexai/preview/evaluation/_evaluation.py

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
}
8383
_SUCCESSFUL_FINISH_REASONS = [
8484
gapic_content_types.Candidate.FinishReason.STOP,
85+
gapic_content_types.Candidate.FinishReason.MAX_TOKENS,
8586
# Many responses have this finish reason
8687
gapic_content_types.Candidate.FinishReason.FINISH_REASON_UNSPECIFIED,
8788
]

0 commit comments

Comments
 (0)