We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb7b52 commit 264df10Copy full SHA for 264df10
vertexai/src/Safety.cs
@@ -76,6 +76,10 @@ public enum HarmBlockThreshold {
76
/// All content is allowed regardless of harm.
77
/// </summary>
78
None,
79
+ /// <summary>
80
+ /// All content is allowed regardless of harm, and metadata will not be included in the response.
81
+ /// </summary>
82
+ Off,
83
}
84
85
/// <summary>
@@ -128,6 +132,7 @@ private string ConvertThreshold(HarmBlockThreshold threshold) {
128
132
HarmBlockThreshold.MediumAndAbove => "BLOCK_MEDIUM_AND_ABOVE",
129
133
HarmBlockThreshold.OnlyHigh => "BLOCK_ONLY_HIGH",
130
134
HarmBlockThreshold.None => "BLOCK_NONE",
135
+ HarmBlockThreshold.Off => "OFF",
131
136
_ => threshold.ToString(), // Fallback
137
};
138
0 commit comments