Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
1bcc20d
Add blockchain to latest profile
markcowl Aug 22, 2019
7b46097
Add additional types
markcowl Aug 22, 2019
73ffaaf
Merge branch 'Azure:main' into main
bowgong Jul 16, 2024
822f054
add 2024-09-01
bowgong Jul 17, 2024
17fa7a6
prettier
bowgong Jul 17, 2024
c0cd365
fix typespec validation
bowgong Jul 17, 2024
d99b5ac
fix naming and swagger
bowgong Jul 17, 2024
d87f076
fomratting
bowgong Jul 17, 2024
0d42125
add text:detectProtectedMaterial
bowgong Jul 22, 2024
f2baeb7
add example for DetectProtectedMaterial
bowgong Jul 22, 2024
2e06af5
fix example
bowgong Jul 22, 2024
1526d19
fix TypeSpec
bowgong Jul 22, 2024
421e9d7
add isRegex for blocklist related APIs
bowgong Jul 24, 2024
5f0cb7a
fix format
bowgong Jul 24, 2024
afbf11c
update blocklist item max length
bowgong Jul 25, 2024
46c9258
fix comments
bowgong Jul 30, 2024
b56639f
fix typespec
bowgong Jul 30, 2024
f9225da
fix clientName
bowgong Jul 30, 2024
8b18dc0
test clientname ...
bowgong Jul 30, 2024
eebffba
test client rename x3
bowgong Jul 30, 2024
a47d422
fix clientName x4
bowgong Jul 31, 2024
83e911f
fix conflict
bowgong Jul 31, 2024
7d459ad
fix conflict
bowgong Jul 31, 2024
e7155a1
Merge branch 'main' into aacs-stable-20240901
bowgong Jul 31, 2024
df89488
Update 0901 contract
Aug 1, 2024
4041647
test clientName x5
bowgong Aug 1, 2024
c3810fa
Merge branch 'aacs-stable-20240901' of https://github.com/bowgong/azu…
bowgong Aug 1, 2024
d2fe8a9
revert the clientName renaming
bowgong Aug 1, 2024
932d961
fix spell typo
bowgong Aug 1, 2024
981d68b
fix typespec validation
bowgong Aug 1, 2024
afbb898
fix format issue
bowgong Aug 1, 2024
7f98bf4
Merge branch 'main' into aacs-stable-20240901
bowgong Aug 1, 2024
e328505
Update specification/cognitiveservices/data-plane/ContentSafety/stabl…
bowgong Aug 2, 2024
7a40652
Update specification/cognitiveservices/data-plane/ContentSafety/stabl…
bowgong Aug 2, 2024
143ddf7
split PromptInjectionAnalysisResult into UserPromptInjectionAnalysisR…
bowgong Aug 2, 2024
46c9b9a
Merge branch 'aacs-stable-20240901' of https://github.com/bowgong/azu…
bowgong Aug 2, 2024
3fea0d0
fix description
bowgong Aug 2, 2024
f9daa26
update blocklist sample to include isRegex: true
bowgong Aug 5, 2024
ab6a7ba
update example
bowgong Aug 5, 2024
c748a00
fix blocklist examples
bowgong Aug 7, 2024
1938cb1
remove new contraints temporarily
bowgong Aug 7, 2024
bd83803
fix blocklist example
bowgong Aug 8, 2024
3aab319
fix blocklist examples
bowgong Aug 8, 2024
b80ee3f
revert maxLength on blocklist items
bowgong Aug 8, 2024
3f13787
Merge branch 'main' into aacs-stable-20240901
bowgong Aug 8, 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
Prev Previous commit
Next Next commit
fix description
  • Loading branch information
bowgong committed Aug 2, 2024
commit 3fea0d0b642477311870aefc57613eb24db30b78
10 changes: 5 additions & 5 deletions specification/cognitiveservices/ContentSafety/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ union AnalyzeImageOutputType {

@doc("The text analysis request.")
model AnalyzeTextOptions {
@doc("The text needs to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.")
@doc("The text to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.")
@maxLength(10000)
text: string;

Expand Down Expand Up @@ -116,7 +116,7 @@ model TextCategoriesAnalysis {

@doc("The image analysis request.")
model AnalyzeImageOptions {
@doc("The image needs to be analyzed.")
@doc("The image to be analyzed.")
image: ImageData;

@doc("The categories will be analyzed. If they are not assigned, a default set of analysis results for the categories will be returned.")
Expand Down Expand Up @@ -214,11 +214,11 @@ model RemoveTextBlocklistItemsOptions {
@added(ContentSafety.Versions.v2024_09_01)
@doc("The request of analyzing potential direct or indirect injection attacks.")
model ShieldPromptOptions {
@doc("The user prompt needs to be analyzed, which may contain direct injection attacks.")
@doc("The user prompt to be analyzed, which may contain direct injection attacks.")
@maxLength(10000)
userPrompt?: string;

@doc("The documents needs to be analyzed, which may contain direct or indirect injection attacks.")
@doc("The documents to be analyzed, which may contain direct or indirect injection attacks.")
@maxItems(5)
documents?: string[];
}
Expand Down Expand Up @@ -250,7 +250,7 @@ model DocumentInjectionAnalysisResult {
@added(ContentSafety.Versions.v2024_09_01)
@doc("The request of detecting potential protected material present in the given text.")
model DetectTextProtectedMaterialOptions {
@doc("The text needs to be analyzed, which may contain protected material. The characters will be counted in Unicode code points.")
@doc("The text to be analyzed, which may contain protected material. The characters will be counted in Unicode code points.")
@maxLength(10000)
text: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@
"properties": {
"image": {
"$ref": "#/definitions/ImageData",
"description": "The image needs to be analyzed."
"description": "The image to be analyzed."
},
"categories": {
"type": "array",
Expand Down Expand Up @@ -657,7 +657,7 @@
"properties": {
"text": {
"type": "string",
"description": "The text needs to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.",
"description": "The text to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.",
"maxLength": 10000
},
"categories": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@
"properties": {
"image": {
"$ref": "#/definitions/ImageData",
"description": "The image needs to be analyzed."
"description": "The image to be analyzed."
},
"categories": {
"type": "array",
Expand Down Expand Up @@ -749,7 +749,7 @@
"properties": {
"text": {
"type": "string",
"description": "The text needs to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.",
"description": "The text to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.",
"maxLength": 10000
},
"categories": {
Expand Down Expand Up @@ -892,7 +892,7 @@
"properties": {
"text": {
"type": "string",
"description": "The text needs to be analyzed, which may contain protected material. The characters will be counted in Unicode code points.",
"description": "The text to be analyzed, which may contain protected material. The characters will be counted in Unicode code points.",
"maxLength": 10000
}
},
Expand Down