Skip to content

Commit 0f5098a

Browse files
committed
updates from comments
1 parent 2a7da5a commit 0f5098a

File tree

2 files changed

+7
-34
lines changed

2 files changed

+7
-34
lines changed

specification/ai/Azure.AI.Projects/red-teams/models.tsp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,18 @@ union RiskCategory {
110110
Sexual: "Sexual",
111111

112112
@doc("Represents content related to self-harm.")
113-
SelfHarm: "SelfHarm",
114-
115-
@doc("Represents content involving protected material.")
116-
ProtectedMaterial: "ProtectedMaterial",
117-
118-
@doc("Represents content related to code vulnerabilities.")
119-
CodeVulnerability: "CodeVulnerability",
120-
121-
@doc("Represents content with ungrounded attributes.")
122-
UngroundedAttributes: "UngroundedAttributes",
113+
SelfHarm: "SelfHarm"
123114
}
124115

125116
@doc("Azure OpenAI model configuration. The API version would be selected by the service for querying the model.")
126117
@added(Versions.v2025_05_15_preview)
127118
@removed(Versions.v_latest)
128119
model AzureOpenAIModelConfiguration extends TargetConfig {
129120
@visibility(Lifecycle.Read)
130-
type: "AzureAOAIModel";
121+
type: "AzureOpenAIModel";
131122

132123
@doc("Deployment name for AOAI model. Example: gpt-4o if in AIServices or connection based `connection_name/deployment_name` (i.e. `my-aoai-connection/gpt-4o`.")
133-
DeploymentName: string;
124+
ModelDeploymentName: string;
134125
}
135126

136127
@doc("Abstract class for target configuration.")

specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,20 +1976,20 @@
19761976
"type": "object",
19771977
"description": "Azure OpenAI model configuration. The API version would be selected by the service for querying the model.",
19781978
"properties": {
1979-
"DeploymentName": {
1979+
"ModelDeploymentName": {
19801980
"type": "string",
19811981
"description": "Deployment name for AOAI model. Example: gpt-4o if in AIServices or connection based `connection_name/deployment_name` (i.e. `my-aoai-connection/gpt-4o`."
19821982
}
19831983
},
19841984
"required": [
1985-
"DeploymentName"
1985+
"ModelDeploymentName"
19861986
],
19871987
"allOf": [
19881988
{
19891989
"$ref": "#/definitions/TargetConfig"
19901990
}
19911991
],
1992-
"x-ms-discriminator-value": "AzureAOAIModel"
1992+
"x-ms-discriminator-value": "AzureOpenAIModel"
19931993
},
19941994
"BaseCredentials": {
19951995
"type": "object",
@@ -3245,10 +3245,7 @@
32453245
"HateUnfairness",
32463246
"Violence",
32473247
"Sexual",
3248-
"SelfHarm",
3249-
"ProtectedMaterial",
3250-
"CodeVulnerability",
3251-
"UngroundedAttributes"
3248+
"SelfHarm"
32523249
],
32533250
"x-ms-enum": {
32543251
"name": "RiskCategory",
@@ -3273,21 +3270,6 @@
32733270
"name": "SelfHarm",
32743271
"value": "SelfHarm",
32753272
"description": "Represents content related to self-harm."
3276-
},
3277-
{
3278-
"name": "ProtectedMaterial",
3279-
"value": "ProtectedMaterial",
3280-
"description": "Represents content involving protected material."
3281-
},
3282-
{
3283-
"name": "CodeVulnerability",
3284-
"value": "CodeVulnerability",
3285-
"description": "Represents content related to code vulnerabilities."
3286-
},
3287-
{
3288-
"name": "UngroundedAttributes",
3289-
"value": "UngroundedAttributes",
3290-
"description": "Represents content with ungrounded attributes."
32913273
}
32923274
]
32933275
}

0 commit comments

Comments
 (0)