Skip to content

Commit 832d423

Browse files
Removed floor setting tests
1 parent 1dd05f1 commit 832d423

File tree

4 files changed

+502
-626
lines changed

4 files changed

+502
-626
lines changed

model-armor/snippets/updateFolderFloorSettings.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ async function updateFolderFloorSettings(folderId) {
4646
raiFilters: [
4747
{
4848
filterType:
49-
protos.google.cloud.modelarmor.v1.RaiFilterType.HATE_SPEECH,
49+
protos.google.cloud.modelarmor.v1.RaiFilterType.HARASSMENT,
50+
confidenceLevel:
51+
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel
52+
.LOW_AND_ABOVE,
53+
},
54+
{
55+
filterType:
56+
protos.google.cloud.modelarmor.v1.RaiFilterType.SEXUALLY_EXPLICIT,
5057
confidenceLevel:
5158
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel.HIGH,
5259
},

model-armor/snippets/updateOrganizationFloorSettings.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ async function updateOrganizationFloorSettings(organizationId) {
4444
raiFilters: [
4545
{
4646
filterType:
47-
protos.google.cloud.modelarmor.v1.RaiFilterType.HATE_SPEECH,
47+
protos.google.cloud.modelarmor.v1.RaiFilterType.HARASSMENT,
48+
confidenceLevel:
49+
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel
50+
.LOW_AND_ABOVE,
51+
},
52+
{
53+
filterType:
54+
protos.google.cloud.modelarmor.v1.RaiFilterType.SEXUALLY_EXPLICIT,
4855
confidenceLevel:
4956
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel.HIGH,
5057
},

model-armor/snippets/updateProjectFloorSettings.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ async function updateProjectFloorSettings(projectId) {
4444
raiFilters: [
4545
{
4646
filterType:
47-
protos.google.cloud.modelarmor.v1.RaiFilterType.HATE_SPEECH,
47+
protos.google.cloud.modelarmor.v1.RaiFilterType.HARASSMENT,
48+
confidenceLevel:
49+
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel
50+
.LOW_AND_ABOVE,
51+
},
52+
{
53+
filterType:
54+
protos.google.cloud.modelarmor.v1.RaiFilterType.SEXUALLY_EXPLICIT,
4855
confidenceLevel:
4956
protos.google.cloud.modelarmor.v1.DetectionConfidenceLevel.HIGH,
5057
},

0 commit comments

Comments
 (0)