Module: Google::Cloud::AIPlatform::V1::Candidate::FinishReason
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/content.rb
Overview
The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.
Constant Summary collapse
- FINISH_REASON_UNSPECIFIED =
The finish reason is unspecified.
0
- STOP =
Token generation reached a natural stopping point or a configured stop sequence.
1
- MAX_TOKENS =
Token generation reached the configured maximum output tokens.
2
- SAFETY =
Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, content is empty if content filters blocks the output.
3
- RECITATION =
Token generation stopped because the content potentially contains copyright violations.
4
- OTHER =
All other reasons that stopped the token generation.
5
- BLOCKLIST =
Token generation stopped because the content contains forbidden terms.
6
- PROHIBITED_CONTENT =
Token generation stopped for potentially containing prohibited content.
7
- SPII =
Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).
8
- MALFORMED_FUNCTION_CALL =
The function call generated by the model is invalid.
9