Setting the file. One moment.
Subchapter 3.2
references/sdk/azure-ai-contentsafety-java.mdMarkdown1 KBView on GitHub
Condensed from azure-ai-contentsafety-java. Full patterns (blocklist management, image moderation, 8-severity) in the azure-ai-contentsafety-java plugin skill if installed.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-contentsafety</artifactId>
<version>1.1.0-beta.1</version>
</dependency>import com.azure.ai.contentsafety.ContentSafetyClient;
import com.azure.ai.contentsafety.ContentSafetyClientBuilder;
import com.azure.ai.contentsafety.BlocklistClient;
import com.azure.ai.contentsafety.BlocklistClientBuilder;
ContentSafetyClient client = new ContentSafetyClientBuilder()
.endpoint(endpoint).credential(credential).buildClient();ContentSafetyClientBuilder and BlocklistClientBuildernew ContentSafetyImageData().setContent(BinaryData.fromBytes(bytes))new ContentSafetyImageData().setBlobUrl(url)BinaryData + RequestOptions (not typed model)