Skip to content

Commit

Permalink
Update OpenAI deployment names and models
Browse files Browse the repository at this point in the history
  • Loading branch information
heblasco committed Mar 6, 2024
1 parent 67733fc commit ac2ec0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions infra/modules/openai/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ resource "azurerm_cognitive_deployment" "embedding" {
}
}

resource "azurerm_cognitive_deployment" "gpt4" {
name = "gpt4"
resource "azurerm_cognitive_deployment" "gpt_4_32k" {
name = "gpt-4-32k"
cognitive_account_id = azurerm_cognitive_account.openai.id
rai_policy_name = "Microsoft.Default"
model {
format = "OpenAI"
name = "gpt-4"
name = "gpt-4-32-k"
version = "0613"
}

Expand Down
9 changes: 2 additions & 7 deletions infra/modules/openai/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,13 @@ output "gpt4_vision_deployment_model_name" {
}

output "gpt4_deployment_name" {
value = azurerm_cognitive_deployment.gpt4.name
value = azurerm_cognitive_deployment.gpt_4_32k.name
}

output "gpt4_deployment_model_name" {
value = azurerm_cognitive_deployment.gpt4.model[0].name
value = azurerm_cognitive_deployment.gpt_4_32k.model[0].name
}

output "embedding_deployment_name" {
value = azurerm_cognitive_deployment.embedding.name
}


# output "secondary_openai_endpoint" {
# value = azurerm_cognitive_account.secondary_openai.endpoint
# }

0 comments on commit ac2ec0f

Please sign in to comment.