Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

infra: Use Azure OpenAI "Global-Standard"

Clémence Lesné22429cd8bb77
diff --git a/bicep/app.bicep b/bicep/app.bicep
index a670c1b..344aadc 100644
--- a/bicep/app.bicep
+++ b/bicep/app.bicep
@@ -1,13 +1,16 @@
param cognitiveCommunicationLocation string
+param embeddingDeploymentType string
param embeddingModel string
param embeddingQuota int
param embeddingVersion string
param functionappLocation string
param llmFastContext int
+param llmFastDeploymentType string
param llmFastModel string
param llmFastQuota int
param llmFastVersion string
param llmSlowContext int
+param llmSlowDeploymentType string
param llmSlowModel string
param llmSlowQuota int
param llmSlowVersion string
@@ -535,10 +538,9 @@ resource llmSlow 'Microsoft.CognitiveServices/accounts/deployments@2023-10-01-pr
tags: tags
sku: {
capacity: llmSlowQuota
- name: 'Standard' // Pay-as-you-go
+ name: llmSlowDeploymentType
}
properties: {
- dynamicThrottlingEnabled: true // Declared as read-only but can be set
// raiPolicyName: contentfilter.name
versionUpgradeOption: 'NoAutoUpgrade'
model: {
@@ -555,10 +557,9 @@ resource llmFast 'Microsoft.CognitiveServices/accounts/deployments@2023-10-01-pr
tags: tags
sku: {
capacity: llmFastQuota
- name: 'Standard' // Pay-as-you-go
+ name: llmFastDeploymentType
}
properties: {
- dynamicThrottlingEnabled: true // Declared as read-only but can be set
// raiPolicyName: contentfilter.name
versionUpgradeOption: 'NoAutoUpgrade'
model: {
@@ -629,16 +630,15 @@ resource llmFast 'Microsoft.CognitiveServices/accounts/deployments@2023-10-01-pr
// }
// }
-resource ada 'Microsoft.CognitiveServices/accounts/deployments@2023-10-01-preview' = {
+resource embedding 'Microsoft.CognitiveServices/accounts/deployments@2023-10-01-preview' = {
parent: cognitiveOpenai
name: embeddingModelFullName
tags: tags
sku: {
capacity: embeddingQuota
- name: 'Standard' // Pay-as-you-go
+ name: embeddingDeploymentType
}
properties: {
- dynamicThrottlingEnabled: true // Declared as read-only but can be set
// raiPolicyName: contentfilter.name
versionUpgradeOption: 'NoAutoUpgrade'
model: {
diff --git a/bicep/main.bicep b/bicep/main.bicep
index c548323..0500f74 100644
--- a/bicep/main.bicep
+++ b/bicep/main.bicep
@@ -1,16 +1,19 @@
param cognitiveCommunicationLocation string
+param embeddingDeploymentType string = 'Standard' // Pay-as-you-go in a single region
param embeddingModel string = 'text-embedding-ada-002'
-param embeddingQuota int = 40 // Keep it small, will be scaled up if regional quota remains
+param embeddingQuota int = 120
param embeddingVersion string = '2'
param functionappLocation string
param instance string = deployment().name
param llmFastContext int = 16385
+param llmFastDeploymentType string = 'Standard' // Pay-as-you-go in a single region
param llmFastModel string = 'gpt-35-turbo'
-param llmFastQuota int = 40 // Keep it small, will be scaled up if regional quota remains
+param llmFastQuota int = 120
param llmFastVersion string = '0125'
param llmSlowContext int = 128000
+param llmSlowDeploymentType string = 'Global-Standard' // Pay-as-you-go in multiple regions
param llmSlowModel string = 'gpt-4o'
-param llmSlowQuota int = 40 // Keep it small, will be scaled up if regional quota remains
+param llmSlowQuota int = 225
param llmSlowVersion string = '2024-05-13'
param location string = deployment().location
param openaiLocation string
@@ -44,15 +47,18 @@ module app 'app.bicep' = {
scope: sub
params: {
cognitiveCommunicationLocation: cognitiveCommunicationLocation
+ embeddingDeploymentType: embeddingDeploymentType
embeddingModel: embeddingModel
embeddingQuota: embeddingQuota
embeddingVersion: embeddingVersion
functionappLocation: functionappLocation
llmFastContext: llmFastContext
+ llmFastDeploymentType: llmFastDeploymentType
llmFastModel: llmFastModel
llmFastQuota: llmFastQuota
llmFastVersion: llmFastVersion
llmSlowContext: llmSlowContext
+ llmSlowDeploymentType: llmSlowDeploymentType
llmSlowModel: llmSlowModel
llmSlowQuota: llmSlowQuota
llmSlowVersion: llmSlowVersion