Skip to content
Closed
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 @@ -651,6 +651,18 @@ PollerFlux<BinaryData, BinaryData> beginBeginAzureBatchImageGeneration(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,18 @@ SyncPoller<BinaryData, BinaryData> beginBeginAzureBatchImageGeneration(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,18 @@ public Response<BinaryData> getEmbeddingsWithResponse(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down Expand Up @@ -650,6 +662,18 @@ public Mono<Response<BinaryData>> getCompletionsWithResponseAsync(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down Expand Up @@ -800,6 +824,18 @@ public Response<BinaryData> getCompletionsWithResponse(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down Expand Up @@ -935,6 +971,18 @@ public Mono<Response<BinaryData>> getChatCompletionsWithResponseAsync(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down Expand Up @@ -1068,6 +1116,18 @@ public Response<BinaryData> getChatCompletionsWithResponse(
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down Expand Up @@ -1204,6 +1264,18 @@ public Mono<Response<BinaryData>> getChatCompletionsWithAzureExtensionsWithRespo
* violence (Optional): (recursive schema, see violence above)
* hate (Optional): (recursive schema, see hate above)
* self_harm (Optional): (recursive schema, see self_harm above)
* error (Optional): {
* code: String (Required)
* message: String (Required)
* target: String (Optional)
* details (Optional): [
* (recursive schema, see above)
* ]
* innererror (Optional): {
* code: String (Optional)
* innererror (Optional): (recursive schema, see innererror above)
* }
* }
* }
* }
* ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.azure.core.models.ResponseError;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Information about the content filtering category, if it has been detected. */
Expand Down Expand Up @@ -98,4 +99,23 @@ public ContentFilterResult getSelfHarm() {
/** Creates an instance of ContentFilterResults class. */
@Generated
private ContentFilterResults() {}

/*
* Describes an error returned if the content filtering system is
* down or otherwise unable to complete the operation in time.
*/
@Generated
@JsonProperty(value = "error")
private ResponseError error;

/**
* Get the error property: Describes an error returned if the content filtering system is down or otherwise unable
* to complete the operation in time.
*
* @return the error value.
*/
@Generated
public ResponseError getError() {
return this.error;
}
}
8 changes: 4 additions & 4 deletions sdk/openai/azure-ai-openai/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
directory: specification/cognitiveservices/OpenAI.Inference
additionalDirectories:
- specification/cognitiveservices/OpenAI.Authoring
commit: b646a42aa3b7a0ce488d05f1724827ea41d12cf1
commit: b7b2ee92e149ce85cba13596e28402d4196fe4ae
repo: Azure/azure-rest-api-specs
additionalDirectories: []
directory: specification/cognitiveservices/OpenAI.Inference