Skip to content

Commit d34ff02

Browse files
authored
[Firebase AI] Turn on safety attributes for Imagen (#1315)
1 parent bd718f9 commit d34ff02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

firebaseai/src/Imagen/ImagenModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ private string MakeGenerateImagenRequest(string prompt) {
119119
private Dictionary<string, object> MakeGenerateImagenRequestAsDictionary(
120120
string prompt) {
121121
Dictionary<string, object> parameters = new() {
122+
// These values are hardcoded to true for AI Monitoring.
122123
["includeRaiReason"] = true,
124+
["includeSafetyAttributes"] = true,
123125
};
124126
// Merge the settings into a single parameter dictionary
125127
if (_generationConfig != null) {

0 commit comments

Comments
 (0)