You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 03-CoreGenerativeAITechniques/README.md
+46-7Lines changed: 46 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,7 +246,7 @@ Try asking: "What is GitHub Models?" vs "What is the weather like?"
246
246
247
247
### What This Example Teaches
248
248
249
-
The Responsible AI example showcases the importance of implementing safety measures in AI applications. It demonstrates safety filters that detect harmful content categories including hate speech, harassment, self-harm, sexual content, and violence, demonstrating how production AI applications should gracefully handle content policy violations through proper exception handling, user feedback mechanisms, and fallback response strategies.
249
+
The Responsible AI example showcases the importance of implementing safety measures in AI applications. It demonstrates how modern AI safety systems work through two primary mechanisms: hard blocks (HTTP 400 errors from safety filters) and soft refusals (polite "I can't assist with that" responses from the model itself). This example shows how production AI applications should gracefully handle content policy violations through proper exception handling, refusal detection, user feedback mechanisms, and fallback response strategies.
0 commit comments