Documentation of custom content filters CLI usage in Azure OpenAI
Preconditions
- [X] No need to upgrade Python SDK or the Python SDK is ready.
Related command
No response
Resource Provider
N/A
Description of Feature or Work Requested
Looking for clarity on how to leverage the CLI to do maintenance for the following operations:
- Deploying and configuring a Content Filtering configuration.
- Assigning a custom content filter to a model deployment
Minimum API Version Required
N/A
Swagger PR link / SDK link
N/A
Request Example
No response
Target Date
2024-01-01
PM Contact
Engineer Contact
Additional context
No response
Thank you for opening this issue, we will look into it.
@shayben, please provide more details about your feature request, such as operations in swagger, API version, etc.
@shayben, please provide more details about your feature request, such as operations in swagger, API version, etc.
Hi @jsntcy, I am looking to automate devops and maintenance on a deployed Azure OpenAI resource using Azure CLI. Can you clarify how API version and Swagger related to the Azure OpenAI resource or the Azure CLI tool?
Shay Ben-Elazar
I suggest you contact Azure OpenAI team for help as our team is only responsible for Azure CLI and don't know what API you should use.
I have the same question, and feel this is the right team to be asking (not the Azure OpenAI team) since what we're looking for here are missing options for Azure CLI.
- The command az cognitiveservices account deployment create (https://learn.microsoft.com/en-us/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest#az-cognitiveservices-account-deployment-create) does not have options for specifying either the "Content Filter" or the "Rate Limit" for a deployment. It seems that we must go to the Azure OpenAI Studio UI to edit these values (making it impossible to automate).
- For the "Content Filter" value mentioned above, the Azure OpenAI Studio UI has a separate section for defining these Content filters... but there doesn't appear to be any Azure CLI cognitiveservices command for this, so again these must be created manually.
@waynestevensinsight totally agree, we also need this attribute in Azure CLI. Did you find another way in the meantime, e.g. over terraform?
@waynestevensinsight totally agree, we also need this attribute in Azure CLI. Did you find another way in the meantime, e.g. over terraform?
We're just doing this manually for now (we don't have enough deployments yet to make this worth investing time in a workaround)