Skip to content

Commit

Permalink
Add GPT-4 Vision deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
heblasco committed Mar 6, 2024
1 parent 7c8f6ce commit 8c1c0b0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion infra/modules/openai/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "azurerm_cognitive_account" "openai" {
custom_subdomain_name = var.azopenai_name
}

resource "azurerm_cognitive_deployment" "this" {
resource "azurerm_cognitive_deployment" "gpt-35-turbo" {
name = "DemoBuild"
cognitive_account_id = azurerm_cognitive_account.openai.id
rai_policy_name = "Microsoft.Default"
Expand Down Expand Up @@ -56,6 +56,22 @@ resource "azurerm_cognitive_deployment" "gpt4" {
}
}

resource "azurerm_cognitive_deployment" "gpt4-vision" {
name = "gpt4-vision"
cognitive_account_id = azurerm_cognitive_account.openai.id
rai_policy_name = "Microsoft.Default"
model {
format = "OpenAI"
name = "gpt-4"
version = "vision-preview"
}

scale {
type = "Standard"
capacity = 40
}
}

resource "azurerm_role_assignment" "openai_user" {
scope = azurerm_cognitive_account.openai.id
role_definition_name = "Cognitive Services OpenAI User"
Expand Down

0 comments on commit 8c1c0b0

Please sign in to comment.