Skip to content

Commit 725d908

Browse files
authored
[OpenAI] Add error property in ContentFilterResults (#25585)
* [OpenAI] Add error property in ContentFilterResults * add missing import * use fully qualified path * update generated swaggers
1 parent ac44b88 commit 725d908

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

specification/cognitiveservices/OpenAI.Inference/models/completions.common.tsp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "@typespec/versioning";
2+
import "@azure-tools/typespec-azure-core";
23

34
using TypeSpec.Versioning;
45

@@ -121,6 +122,12 @@ model ContentFilterResults {
121122
""")
122123
@projectedName("json", "self_harm")
123124
selfHarm?: ContentFilterResult;
125+
126+
@doc("""
127+
Describes an error returned if the content filtering system is
128+
down or otherwise unable to complete the operation in time.
129+
""")
130+
error?: Azure.Core.Foundations.Error;
124131
}
125132

126133
@added(ServiceApiVersions.v2023_06_01_Preview)

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,10 @@
974974
"$ref": "#/definitions/ContentFilterResult",
975975
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
976976
"x-ms-client-name": "selfHarm"
977+
},
978+
"error": {
979+
"$ref": "#/definitions/Azure.Core.Foundations.Error",
980+
"description": "Describes an error returned if the content filtering system is\ndown or otherwise unable to complete the operation in time."
977981
}
978982
}
979983
},

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,10 @@
10071007
"$ref": "#/definitions/ContentFilterResult",
10081008
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
10091009
"x-ms-client-name": "selfHarm"
1010+
},
1011+
"error": {
1012+
"$ref": "#/definitions/Azure.Core.Foundations.Error",
1013+
"description": "Describes an error returned if the content filtering system is\ndown or otherwise unable to complete the operation in time."
10101014
}
10111015
}
10121016
},

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,10 @@
11251125
"$ref": "#/definitions/ContentFilterResult",
11261126
"description": "Describes language related to physical actions intended to purposely hurt, injure,\nor damage one’s body, or kill oneself.",
11271127
"x-ms-client-name": "selfHarm"
1128+
},
1129+
"error": {
1130+
"$ref": "#/definitions/Azure.Core.Foundations.Error",
1131+
"description": "Describes an error returned if the content filtering system is\ndown or otherwise unable to complete the operation in time."
11281132
}
11291133
}
11301134
},

0 commit comments

Comments
 (0)