Skip to content

Commit

Permalink
add profanity content filter
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomartinsdev committed Oct 1, 2024
1 parent 37540d2 commit 8033f54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ type JailBreak struct {
Detected bool `json:"detected"`
}

type Profanity struct {
Filtered bool `json:"filtered"`
Detected bool `json:"detected"`
}

type ContentFilterResults struct {
Hate Hate `json:"hate,omitempty"`
SelfHarm SelfHarm `json:"self_harm,omitempty"`
Sexual Sexual `json:"sexual,omitempty"`
Violence Violence `json:"violence,omitempty"`
JailBreak JailBreak `json:"jailbreak,omitempty"`
Profanity Profanity `json:"profanity,omitempty"`
}

type PromptAnnotation struct {
Expand Down

0 comments on commit 8033f54

Please sign in to comment.