Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add private preview versions to feature branch #43

Merged
merged 139 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
65b8342
Add ga contract for Content Safety
mengaims Aug 24, 2023
a138271
Update examples for 2023-10-01
mengaims Aug 24, 2023
f77463d
Resolve ModelValidation SpellCheck and Avocado
mengaims Aug 24, 2023
17547ee
Fix typo
mengaims Aug 24, 2023
1656956
Fix minor errors in example and readme
mengaims Aug 24, 2023
da9d2ea
Fix example
mengaims Aug 24, 2023
b58f20c
remove the 0430 content
mengaims Aug 24, 2023
edd94d2
update readme
mengaims Aug 24, 2023
7010408
re-format markdowm
mengaims Aug 24, 2023
e055719
Fix example
mengaims Aug 24, 2023
84d0926
init content safety 2023-10-15-preview
suxi-ms Aug 28, 2023
72e5224
init content safety 2023-10-15-previwe
suxi-ms Aug 28, 2023
4a19a1b
update
suxi-ms Aug 30, 2023
5749041
format example
suxi-ms Aug 30, 2023
1f8aec9
update read me file
suxi-ms Aug 31, 2023
f523f0c
update
suxi-ms Sep 1, 2023
6f0479d
update
suxi-ms Sep 1, 2023
779f5b8
update contract
suxi-ms Sep 5, 2023
4dc6d89
update
suxi-ms Sep 6, 2023
77aec4a
update
suxi-ms Sep 6, 2023
70e98b0
update threshold
suxi-ms Sep 7, 2023
cbb4c03
update new contract by add judgement kind enum
suxi-ms Sep 8, 2023
571f9b1
update description
suxi-ms Sep 8, 2023
4d5ad9a
u
suxi-ms Sep 8, 2023
9ab25eb
update
suxi-ms Sep 17, 2023
99d08fa
updat length
suxi-ms Sep 17, 2023
611ba79
update
suxi-ms Sep 19, 2023
314db09
update
suxi-ms Sep 26, 2023
d0eaef6
update description for accept severity threshodl
suxi-ms Oct 7, 2023
db1d1a5
update
suxi-ms Oct 17, 2023
54f609d
merge with remote main
suxi-ms Oct 17, 2023
f6b52da
merge with acs-ga
suxi-ms Oct 17, 2023
d6ae114
Add snippy contract
Oct 17, 2023
759b67c
remove 8 sev levels for image
suxi-ms Oct 17, 2023
328bb55
Merge branch 'suxi/acs-10-15-preview' into lixiangliu/10-15-snippy
Oct 18, 2023
848cb05
update contentsafety.json
Oct 18, 2023
f729fe5
Update snippy path
Oct 18, 2023
51d87a2
Merge pull request #1 from mengaims/lixiangliu/10-15-snippy
liulixiang1988 Oct 18, 2023
139f780
add type spec for jailbreak
zhaiyutong Oct 18, 2023
3a3748a
Add incident response API in 2023-10-30-preview
Oct 18, 2023
ca9a1f6
Merge pull request #2 from mengaims/lixiangliu/acs-1030-ir
liulixiang1988 Oct 18, 2023
42b7454
compiled
zhaiyutong Oct 18, 2023
4107672
Adaptive annotation service contract
mengaims Oct 18, 2023
6722c36
Remove operations
mengaims Oct 18, 2023
28ac6ed
update
zhaiyutong Oct 18, 2023
c01cf8d
update
zhaiyutong Oct 18, 2023
3ec7f3d
refine
zhaiyutong Oct 18, 2023
75b5fb8
update
zhaiyutong Oct 18, 2023
8ee1ef9
make 0,1,2,3,4,5,6,7 to 0, 1, 2, 3, ... and add comman in last enum v…
suxi-ms Oct 19, 2023
9a069b7
Merge remote-tracking branch 'origin/acs-1030-private' into mengai/ac…
mengaims Oct 20, 2023
7dc5246
Merge branch 'Azure:main' into acs-1030-private
mengaims Oct 20, 2023
1b10272
Merge pull request #3 from mengaims/mengai/acs-1030-annotation
mengaims Oct 20, 2023
6bf53a3
update path
zhaiyutong Oct 20, 2023
18e6a84
Update NL Snippy path
Oct 20, 2023
1116593
Merge pull request #4 from mengaims/yutongzhai/add-jailbreak-1015
mengaims Oct 20, 2023
f4df859
Merge branch 'suxi/acs-10-15-preview' into lixiangliu/snippy-10-15-pr…
Oct 20, 2023
3a66d2b
Resolve conflict
Oct 20, 2023
053adb5
Merge pull request #5 from mengaims/lixiangliu/snippy-10-15-preview
mengaims Oct 20, 2023
cc9a102
add
zhaiyutong Oct 23, 2023
12fa12b
add
zhaiyutong Oct 23, 2023
9f43caa
remove labelName
mengaims Oct 23, 2023
3271d8f
Merge pull request #7 from mengaims/yutongzhai/add-imageWithText-1030
mengaims Oct 23, 2023
d61ff9c
Merge remote-tracking branch 'origin/acs-1030-private' into mengai/ac…
mengaims Oct 23, 2023
ac17683
Merge pull request #8 from mengaims/mengai/acs-1030-annotation
mengaims Oct 23, 2023
14c79b9
Fix route and minor errors
mengaims Oct 24, 2023
721cb03
Merge branch 'Azure:main' into acs-1030-private
mengaims Oct 24, 2023
a70662f
Merge pull request #9 from mengaims/mengai/acs-1030-annotation
mengaims Oct 24, 2023
b3e39de
Change typo
mengaims Oct 24, 2023
26ea96e
Merge pull request #10 from mengaims/mengai/acs-1030-annotation
mengaims Oct 24, 2023
ceac95f
update
zhaiyutong Oct 24, 2023
7eb3589
Merge pull request #12 from mengaims/yutongzhai/add-imageWithText-update
zhaiyutong Oct 24, 2023
12c1e06
Update protected material API
Oct 26, 2023
c9a02d4
update project sample
suxi-ms Oct 26, 2023
2c1de23
Merge pull request #14 from mengaims/lixiangliu/protected-material-1015
mengaims Oct 26, 2023
e54bbf4
Merge remote-tracking branch 'upstream/main' into suxi/acs-10-15-preview
mengaims Oct 26, 2023
1c5c3af
Merge branch 'Azure:main' into acs-1030-private
mengaims Oct 26, 2023
cd5ff1a
Change path name
mengaims Oct 27, 2023
fbd6143
Update protect material contract
Oct 27, 2023
defc214
update jailbreak
zhaiyutong Oct 27, 2023
510f247
Merge pull request #16 from mengaims/lixiangliu/acs-protected-materia…
mengaims Oct 27, 2023
8b728d1
Merge pull request #17 from mengaims/yutongzhai/update-jailbreak
mengaims Oct 27, 2023
57a9011
Update incident contract
Oct 27, 2023
3971084
Update contract
Oct 27, 2023
36b459e
Update
Oct 27, 2023
397ec52
Merge pull request #18 from mengaims/lixiangliu/acs-ir-1030-update
mengaims Oct 27, 2023
6f19b58
scenarios to enumerations (#19)
mengaims Oct 27, 2023
b3b8af8
Merge branch 'Azure:main' into suxi/acs-10-15-preview
mengaims Oct 27, 2023
981ce7e
Remove project related contract (#20)
mengaims Oct 27, 2023
838a79c
Merge branch 'Azure:main' into acs-1030-private
mengaims Oct 27, 2023
fb39f1b
Merge 1015 (#22)
mengaims Oct 27, 2023
138febd
Add list API for Annotation Service (#23)
mengaims Oct 27, 2023
dab4e4d
Update contract for incident response (#24)
liulixiang1988 Oct 30, 2023
6ddbb38
scenarios to enumerations (#25)
mengaims Oct 30, 2023
9444ed5
[Cognitive Services - Azure AI Content Safety] - 2023-11-30-preview P…
JieZhou000 Nov 10, 2023
117341f
update doc
JieZhou000 Nov 10, 2023
c5d6a41
resolve comments.
JieZhou000 Nov 16, 2023
05667f8
Merge branch 'Azure:main' into suxi/acs-10-15-preview
mengaims Nov 21, 2023
131ac7d
Merge main and recompile swagger
mengaims Nov 21, 2023
454ced3
Merge branch 'Azure:main' into acs-1130-private
mengaims Nov 21, 2023
821a2ec
add explanation for 2023-11-30-preview
Sayaka-4987 Nov 21, 2023
6c7249e
format
Sayaka-4987 Nov 22, 2023
440d33b
generate swagger
Sayaka-4987 Nov 22, 2023
8fb9bee
Optimize contract (#36)
mengaims Nov 22, 2023
9d0c14e
add 12-30-preview, add explanation spec
Sayaka-4987 Nov 28, 2023
15637d7
update
JieZhou000 Nov 30, 2023
0c833c5
Merge branch 'acs-1130-private' of https://github.com/mengaims/azure-…
JieZhou000 Nov 30, 2023
3bea1b8
renamed reason -> harmful chunks
Sayaka-4987 Nov 30, 2023
f25c69f
update.
JieZhou000 Nov 30, 2023
0ec678c
Merge branch 'acs-1130-private' of https://github.com/mengaims/azure-…
mengaims Dec 5, 2023
8aba89d
Merge branch 'Azure:main' into acs-1230-private
Sayaka-4987 Dec 5, 2023
866a276
Merge branch 'Azure:main' into suxi/acs-10-15-preview
mengaims Dec 6, 2023
223233c
remove new version enum from GA version
mengaims Dec 6, 2023
42da4ed
Remove examples from 1015
mengaims Dec 6, 2023
298fa99
restore examples
mengaims Dec 6, 2023
dbd31f9
Add examples for jailbreak and protected material
mengaims Dec 6, 2023
2e49d91
run prettier for example
mengaims Dec 6, 2023
2563ac9
commit add enum to stable
mengaims Dec 6, 2023
cb1895d
Add omit-unreachable-types: true to typespec
mengaims Dec 7, 2023
8edbd65
compile preview
mengaims Dec 7, 2023
be07d31
Fix readme
mengaims Dec 7, 2023
b7464ac
Merge branch 'Azure:main' into acs-1030-private
mengaims Dec 7, 2023
b1325c2
Merge branch 'Azure:main' into acs-1130-private
mengaims Dec 7, 2023
c855120
Merge branch 'Azure:main' into acs-1230-private
mengaims Dec 7, 2023
93fedc7
renamed to citation
Sayaka-4987 Dec 7, 2023
7e560d6
Merge branch 'acs-1230-private' of https://github.com/mengaims/azure-…
Sayaka-4987 Dec 7, 2023
12a8ac3
Merge remote-tracking branch 'origin/suxi/acs-10-15-preview' into acs…
mengaims Dec 7, 2023
d3d2e77
Merge remote-tracking branch 'origin/acs-1130-private' into acs-1130-…
mengaims Dec 7, 2023
054ca3b
Merge remote-tracking branch 'origin/acs-1030-private' into acs-1130-…
mengaims Dec 7, 2023
fbd13e8
Merge remote-tracking branch 'origin/acs-1130-private' into acs-1230-…
mengaims Dec 7, 2023
41a94eb
UPDATE: add reasoning column and update some docs.
JieZhou000 Dec 19, 2023
93880c0
update doc.
JieZhou000 Dec 20, 2023
d8e4e16
update api version.
JieZhou000 Dec 20, 2023
7ed93a1
Merge pull request #39 from mengaims/zhojie/hm-2
JieZhou000 Dec 20, 2023
3327ca3
Fix some typo issues. (#40)
JieZhou000 Jan 2, 2024
59a06fc
Update data plane.
JieZhou000 Jan 2, 2024
5362627
Merge pull request #41 from mengaims/zhojie/hm-4
JieZhou000 Jan 2, 2024
60fab23
Remove unused versions
mengaims Jan 11, 2024
9b4ae68
Merge branch 'acs-1230-private' of https://github.com/mengaims/azure-…
mengaims Jan 11, 2024
400dceb
Merge branch 'feature/azure-ai-content-safety' into acs-1230-private
mengaims Jan 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Add or Update BlocklistItems To Text Blocklist",
"operationId": "TextBlocklists_AddOrUpdateBlocklistItems",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist",
"body": {
"blocklistItems": [
{
"blocklistItemId": null,
"description": "Hate word",
"text": "hate"
}
]
}
},
"responses": {
"200": {
"body": {
"blocklistItems": [
{
"blocklistItemId": "9511969e-f1e3-4604-9127-05ee16c509ec",
"description": "Hate word",
"text": "hate"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "Analyze Image",
"operationId": "ImageOperations_AnalyzeImage",
"parameters": {
"api-version": "2023-12-30-preview",
"body": {
"image": {
"content": "Y29udGVudDE="
}
}
},
"responses": {
"200": {
"body": {
"categoriesAnalysis": [
{
"category": "Hate",
"severity": 0
},
{
"category": "SelfHarm",
"severity": 0
},
{
"category": "Sexual",
"severity": 0
},
{
"category": "Violence",
"severity": 2
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": "Analyze Text",
"operationId": "TextOperations_AnalyzeText",
"parameters": {
"api-version": "2023-12-30-preview",
"body": {
"text": "This is text example. A hate speech sentence. A sentence with a violent description."
}
},
"responses": {
"200": {
"body": {
"blocklistsMatch": [],
"categoriesAnalysis": [{
"category": "Hate",
"severity": 0
},
{
"category": "SelfHarm",
"severity": 0
},
{
"category": "Sexual",
"severity": 0
},
{
"category": "Violence",
"severity": 0
}
],
"citation": [
"A hate speech sentence",
"A sentence with a violent description"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "Create Or Update Text Blocklist",
"operationId": "TextBlocklists_CreateOrUpdateTextBlocklist",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist",
"resource": {
"description": "Test Blocklist"
}
},
"responses": {
"200": {
"body": {
"blocklistName": "TestBlocklist",
"description": "Test Blocklist"
}
},
"201": {
"body": {
"blocklistName": "TestBlocklist",
"description": "Test Blocklist"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"title": "Delete Text Blocklist By blocklistName",
"operationId": "TextBlocklists_DeleteTextBlocklist",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "Get Text Blocklist By blocklistName",
"operationId": "TextBlocklists_GetTextBlocklist",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist"
},
"responses": {
"200": {
"body": {
"blocklistName": "TestBlocklist",
"description": "Test Blocklist"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Get BlockItem By blocklistName And blocklistItemId",
"operationId": "TextBlocklists_GetTextBlocklistItem",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist",
"blocklistItemId": "9511969e-f1e3-4604-9127-05ee16c509ec"
},
"responses": {
"200": {
"body": {
"blocklistItemId": "9511969e-f1e3-4604-9127-05ee16c509ec",
"description": "Hate word",
"text": "hate"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Get All BlockItems By blocklistName",
"operationId": "TextBlocklists_ListTextBlocklistItems",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist"
},
"responses": {
"200": {
"body": {
"value": [
{
"blocklistItemId": "9511969e-f1e3-4604-9127-05ee16c509ec",
"description": "Hate word",
"text": "hate"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Get All Text Blocklists",
"operationId": "TextBlocklists_ListTextBlocklists",
"parameters": {
"api-version": "2023-12-30-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"blocklistName": "TestBlocklist",
"description": "Test Blocklist"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "Remove BlockItems From Text Blocklist",
"operationId": "TextBlocklists_RemoveBlocklistItems",
"parameters": {
"api-version": "2023-12-30-preview",
"blocklistName": "TestBlocklist",
"body": {
"blocklistItemIds": [
"9511969e-f1e3-4604-9127-05ee16c509ec"
]
}
},
"responses": {
"204": {}
}
}
6 changes: 6 additions & 0 deletions specification/cognitiveservices/ContentSafety/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ enum Versions {

@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2023_10_15_Preview: "2023-10-15-preview",

@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2023_10_30_Preview: "2023-10-30-preview",

@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2024_01_30_Preview: "2024-01-30-preview",
}
Loading