Skip to content

Commit 7a825bd

Browse files
matthew29tangcopybara-github
authored andcommitted
feat: Add IMAGE_RECITATION and IMAGE_OTHER enum values to FinishReason
PiperOrigin-RevId: 842873675
1 parent 6ff3f01 commit 7a825bd

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎Google.GenAI/types/FinishReason.cs‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ public enum FinishReason {
100100
/// <summary>
101101
/// The model was expected to generate an image, but none was generated.
102102
/// </summary>
103-
[JsonPropertyName("NO_IMAGE")] NO_IMAGE
103+
[JsonPropertyName("NO_IMAGE")] NO_IMAGE,
104+
105+
/// <summary>
106+
/// Image generation stopped because the generated image may be a recitation from a source.
107+
/// </summary>
108+
[JsonPropertyName("IMAGE_RECITATION")] IMAGE_RECITATION,
109+
110+
/// <summary>
111+
/// Image generation stopped for a reason not otherwise specified.
112+
/// </summary>
113+
[JsonPropertyName("IMAGE_OTHER")] IMAGE_OTHER
104114
}
105115
}

0 commit comments

Comments
 (0)