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

conf: Content Safety blocklist is empty by default

Clémence Lesné9924150a7aa1
diff --git a/README.md b/README.md
index ccfeed2..8fa66d1 100644
--- a/README.md
+++ b/README.md
@@ -282,7 +282,6 @@ ai_search:
content_safety:
access_key: xxx
- blocklists: []
endpoint: https://xxx.cognitiveservices.azure.com
```
diff --git a/helpers/config_models/content_safety.py b/helpers/config_models/content_safety.py
index 7a089f5..9272fea 100644
--- a/helpers/config_models/content_safety.py
+++ b/helpers/config_models/content_safety.py
@@ -4,7 +4,7 @@ from pydantic import SecretStr, Field, BaseModel
class ContentSafetyModel(BaseModel):
access_key: SecretStr
- blocklists: List[str]
+ 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_sexual_score: int = Field(default=2, ge=0, le=7)