How to create and configure content filters for Azure OpenAI deployment programmatically

chaymr 191 Reputation points
2023-12-31T12:18:32.56+00:00

How can I programmatically create and configure content filters for an Azure OpenAI deployment using CLI or ARM? The documentation only shows how to do this via Azure AI Studio. Specifically, I want to know how to create a content filter with a low level of filtering that can be assigned to an OpenAI model deployment for production use. The 'raiPolicyName' parameter can be used to specify a content filter, but I'm unsure about how to create the content filter programmatically.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,836 Reputation points
    2023-12-31T13:02:19.5433333+00:00

    Thanks for the question, Here is the document to create or update content filters via the REST API.

    User's image

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.