Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Update ModerationCategory and ModerationCategoryScore properties #439

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ public class ModerationCategories {
@JsonProperty("hate/threatening")
public boolean hateThreatening;

public boolean harassment;

@JsonProperty("harassment/threatening")
public boolean harassment/threatening;

@JsonProperty("self-harm")
public boolean selfHarm;

@JsonProperty("self-harm/intent")
public boolean selfHarmIntent;

@JsonProperty("self-harm/instructions")
public boolean selfHarmInstructions;

public boolean sexual;

@JsonProperty("sexual/minors")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,20 @@ public class ModerationCategoryScores {
@JsonProperty("hate/threatening")
public double hateThreatening;

public double harassment;

@JsonProperty("harassment/threatening")
public double harassment/threatening;

@JsonProperty("self-harm")
public double selfHarm;

@JsonProperty("self-harm/intent")
public double selfHarmIntent;

@JsonProperty("self-harm/instructions")
public double selfHarmInstructions;

public double sexual;

@JsonProperty("sexual/minors")
Expand Down