Azure / enterprise-azureai

Unleash the power of Azure AI to your application developers in a secure & manageable way with Azure API Management and Azure Developer CLI.
MIT License
80 stars 38 forks source link

Add OpenAI Marketing Limited product and subscription - this is to li… #54

Closed rmoreirao closed 7 months ago

rmoreirao commented 8 months ago

This pull request primarily introduces a new product openAiMarketingLimitedProduct in the apim-backend.bicep file and sets up related resources and policies. It also adds a policy in the product_policy_model_limit.xml file that restricts access based on the deployment-id.

Here are the key changes:

New resources in apim-backend.bicep:

Policy changes in product_policy_model_limit.xml:

azureholic commented 7 months ago

Productname can equal deploymentname. The product could be assigned to any subscription, not just to Marketing. This way its much more generic.

rmoreirao commented 7 months ago

Hi @azureholic , updated the Product to Gpt-35-Turbo

iMicknl commented 7 months ago

How would this work if you have a subscription for gpt-35-turbo and one for gpt-4? Looking at the policy, you can only have one model subscription per product?

pascalvanderheiden commented 7 months ago

@rmoreirao Thanks for your contribution. We'll take your suggestions into a seperate PR, covering the functional spit you mentioned and adding quote limits as well.