Skip to content

Commit 3827492

Browse files
authored
Merge pull request #752 from Cognigy/feature/microsoft-azure-content-safety
Feature/microsoft azure content safety
2 parents 673b319 + 0b15059 commit 3827492

File tree

6 files changed

+339
-90
lines changed

6 files changed

+339
-90
lines changed

extensions/microsoft-azure/README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ You will require the following Secrets for the respective Nodes:
2828
2.
2929
- key: region
3030
- value: Azure Region
31-
31+
32+
- **Detect Jailbreak (Content Safety)**
33+
34+
1.
35+
- key: key
36+
- value: Content Safety API Key
37+
2.
38+
- key: contentSafetyEndpoint
39+
- value: Endpoint URL (e.g. https://demo.cognitiveservices.azure.com/)
40+
3241

3342
## Node: Transcribe WhatsApp Voice Message
3443

@@ -170,3 +179,7 @@ Unlike the **Extract Keyphrases** node, this one detects entities such as locati
170179
}
171180
}
172181
```
182+
183+
## Node: Detect Jailbreak
184+
185+
This Node uses the Azure Content Safety service in order to detect a jailbreak in a given `text`. If such a jailbreak was detected, it follows the "Detected" path, otherwise it continues with "Else".

extensions/microsoft-azure/package-lock.json

+103-84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/microsoft-azure/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "microsoft-azure",
3-
"version": "4.1.0",
4-
"description": "Microsoft Azure Cognitive Services",
3+
"version": "4.2.0",
4+
"description": "Integrates Azure Services",
55
"main": "build/module.js",
66
"scripts": {
77
"transpile": "tsc -p .",
@@ -12,7 +12,8 @@
1212
"keywords": [
1313
"Microsoft",
1414
"Azure",
15-
"Cognitive Services"
15+
"Cognitive Services",
16+
"Content Safety"
1617
],
1718
"author": "Cognigy GmbH",
1819
"license": "MIT",

0 commit comments

Comments
 (0)