File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
src/main/kotlin/com/google/firebase/vertexai/type Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
-
2
+ * [ feature] Added support for ` HarmBlockThreshold.OFF ` . See the
3
+ [ model documentation] ( https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-filters#how_to_configure_content_filters ) {: .external}
4
+ for more information.
3
5
4
6
# 16.3.0
5
7
* [ feature] Emits a warning when attempting to use an incompatible model with
Original file line number Diff line number Diff line change @@ -384,6 +384,7 @@ package com.google.firebase.vertexai.type {
384
384
field public static final com.google.firebase.vertexai.type.HarmBlockThreshold LOW_AND_ABOVE;
385
385
field public static final com.google.firebase.vertexai.type.HarmBlockThreshold MEDIUM_AND_ABOVE;
386
386
field public static final com.google.firebase.vertexai.type.HarmBlockThreshold NONE;
387
+ field public static final com.google.firebase.vertexai.type.HarmBlockThreshold OFF;
387
388
field public static final com.google.firebase.vertexai.type.HarmBlockThreshold ONLY_HIGH;
388
389
}
389
390
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- version =16.3.1
15
+ version =16.4.0
16
16
latestReleasedVersion =16.3.0
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public class HarmBlockThreshold private constructor(public val ordinal: Int) {
25
25
26
26
internal fun toInternal () =
27
27
when (this ) {
28
+ OFF -> Internal .OFF
28
29
NONE -> Internal .BLOCK_NONE
29
30
ONLY_HIGH -> Internal .BLOCK_ONLY_HIGH
30
31
MEDIUM_AND_ABOVE -> Internal .BLOCK_MEDIUM_AND_ABOVE
@@ -39,6 +40,7 @@ public class HarmBlockThreshold private constructor(public val ordinal: Int) {
39
40
BLOCK_MEDIUM_AND_ABOVE ,
40
41
BLOCK_ONLY_HIGH ,
41
42
BLOCK_NONE ,
43
+ OFF
42
44
}
43
45
44
46
public companion object {
@@ -53,5 +55,13 @@ public class HarmBlockThreshold private constructor(public val ordinal: Int) {
53
55
54
56
/* * All content is allowed regardless of harm. */
55
57
@JvmField public val NONE : HarmBlockThreshold = HarmBlockThreshold (3 )
58
+
59
+ /* *
60
+ * All content is allowed regardless of harm.
61
+ *
62
+ * The same as [NONE], but metadata when the corresponding [HarmCategory] occurs will **NOT** be
63
+ * present in the response.
64
+ */
65
+ @JvmField public val OFF : HarmBlockThreshold = HarmBlockThreshold (4 )
56
66
}
57
67
}
You can’t perform that action at this time.
0 commit comments