Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Lower default Content Safety self harm trigger

Clémence Lesné02562af380fe
diff --git a/README.md b/README.md
index 4473f2a..9340841 100644
--- a/README.md
+++ b/README.md
@@ -446,7 +446,7 @@ Moderation is applied on all bot data, including the web page and the conversati
content_safety:
category_hate_score: 0
category_self_harm_score: 0
- category_sexual_score: 5
+ category_sexual_score: 2
category_violence_score: 0
```
diff --git a/helpers/config_models/content_safety.py b/helpers/config_models/content_safety.py
index 01102d4..0ec39dc 100644
--- a/helpers/config_models/content_safety.py
+++ b/helpers/config_models/content_safety.py
@@ -5,7 +5,7 @@ class ContentSafetyModel(BaseModel):
access_key: SecretStr
blocklists: list[str] = []
category_hate_score: int = Field(default=0, ge=0, le=7)
- category_self_harm_score: int = Field(default=1, ge=0, le=7)
+ category_self_harm_score: int = Field(default=0, ge=0, le=7)
category_sexual_score: int = Field(default=2, ge=0, le=7)
category_violence_score: int = Field(default=0, ge=0, le=7)
endpoint: str