azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Documentation of custom content filters CLI usage in Azure OpenAI

Open shayben opened this issue 2 years ago • 7 comments

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:

  1. Deploying and configuring a Content Filtering configuration.
  2. 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

[email protected]

Engineer Contact

[email protected]

Additional context

No response

shayben avatar Dec 05 '23 14:12 shayben

Thank you for opening this issue, we will look into it.

yonzhan avatar Dec 05 '23 14:12 yonzhan

@shayben, please provide more details about your feature request, such as operations in swagger, API version, etc.

jsntcy avatar Dec 06 '23 02:12 jsntcy

@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?

shayben avatar Dec 06 '23 10:12 shayben

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.

jsntcy avatar Dec 26 '23 02:12 jsntcy

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.

  1. 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).
  2. 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 avatar Sep 03 '24 20:09 waynestevensinsight

@waynestevensinsight totally agree, we also need this attribute in Azure CLI. Did you find another way in the meantime, e.g. over terraform?

flowni avatar Mar 06 '25 08:03 flowni

@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)

waynestevensinsight avatar Mar 06 '25 10:03 waynestevensinsight