Skip to content

Commit

Permalink
add jailbreak filter result
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomartinsdev committed Sep 26, 2024
1 parent fdd59d9 commit 9cfe3cf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ type Violence struct {
Severity string `json:"severity,omitempty"`
}

type JailBreak 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"`
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"`
}

type PromptAnnotation struct {
Expand Down

0 comments on commit 9cfe3cf

Please sign in to comment.