From fd6b1c779f3c7a32f862335ecf91dc05696d3e9d Mon Sep 17 00:00:00 2001 From: joelhulen Date: Wed, 30 Aug 2023 13:22:24 -0400 Subject: [PATCH] Fixed OpenAI deployment issue --- deploy/powershell/Deploy-OpenAi.ps1 | 2 +- infrastructure/main.bicep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/powershell/Deploy-OpenAi.ps1 b/deploy/powershell/Deploy-OpenAi.ps1 index 6c61b1a..45457a8 100644 --- a/deploy/powershell/Deploy-OpenAi.ps1 +++ b/deploy/powershell/Deploy-OpenAi.ps1 @@ -19,7 +19,7 @@ if (-not $deployment) { $deployment='completions' $openAiDeployment=$(az cognitiveservices account deployment show -g $resourceGroup -n $name --deployment-name $deployment) if (-not $openAiDeployment) { - $openAiDeployment=$(az cognitiveservices account deployment create -g $resourceGroup -n $name --deployment-name completions --model-name 'gpt-35-turbo' --model-version '1' --model-format OpenAI) + $openAiDeployment=$(az cognitiveservices account deployment create -g $resourceGroup -n $name --deployment-name completions --model-name 'gpt-35-turbo' --model-version '0301' --model-format OpenAI --scale-settings-scale-type 'Standard') } } diff --git a/infrastructure/main.bicep b/infrastructure/main.bicep index d619a80..7b68be3 100644 --- a/infrastructure/main.bicep +++ b/infrastructure/main.bicep @@ -80,7 +80,7 @@ module openAi 'openai.bicep' = { { name: openAiDeployment model: 'gpt-35-turbo' - version: '2' + version: '0301' sku: { name: 'Standard' capacity: 60