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

Azure OpenAI: correct optionality of completions content filter category specification #24819

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -98,13 +98,13 @@ model ContentFilterResults {
those portrayed as an assault or a forced sexual violent act against one’s will,
prostitution, pornography, and abuse.
""")
sexual: ContentFilterResult;
sexual?: ContentFilterResult;

@doc("""
Describes language related to physical actions intended to hurt, injure, damage, or
kill someone or something; describes weapons, etc.
""")
violence: ContentFilterResult;
violence?: ContentFilterResult;

@doc("""
Describes language attacks or uses that include pejorative or discriminatory language
Expand All @@ -113,14 +113,14 @@ model ContentFilterResults {
gender identity and expression, sexual orientation, religion, immigration status, ability
status, personal appearance, and body size.
""")
hate: ContentFilterResult;
hate?: ContentFilterResult;

@doc("""
Describes language related to physical actions intended to purposely hurt, injure,
or damage one’s body, or kill oneself.
""")
@projectedName("json", "self_harm")
selfHarm: ContentFilterResult;
selfHarm?: ContentFilterResult;
}

@added(ServiceApiVersions.v2023_06_01_Preview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,7 @@
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
"x-ms-client-name": "selfHarm"
}
},
"required": [
"sexual",
"violence",
"hate",
"self_harm"
]
}
},
"ContentFilterSeverity": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1005,13 +1005,7 @@
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
"x-ms-client-name": "selfHarm"
}
},
"required": [
"sexual",
"violence",
"hate",
"self_harm"
]
}
},
"ContentFilterSeverity": {
"type": "string",
Expand Down