Skip to content

Commit 77a703d

Browse files
fix: Update GPT_IMAGE_MIN_CAPACITY to 1 across deployment scripts and configurations
1 parent 6cfa91b commit 77a703d

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
GPT_MIN_CAPACITY: 150
2121
O4_MINI_MIN_CAPACITY: 50
2222
GPT41_MINI_MIN_CAPACITY: 50
23-
GPT_IMAGE_MIN_CAPACITY: 4
23+
GPT_IMAGE_MIN_CAPACITY: 1
2424
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
2525

2626
jobs:

.github/workflows/job-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ env:
101101
GPT_MIN_CAPACITY: 150
102102
O4_MINI_MIN_CAPACITY: 50
103103
GPT41_MINI_MIN_CAPACITY: 50
104-
GPT_IMAGE_MIN_CAPACITY: 4
104+
GPT_IMAGE_MIN_CAPACITY: 1
105105
BRANCH_NAME: ${{ github.event.workflow_run.head_branch || github.head_ref || github.ref_name }}
106106
WAF_ENABLED: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.waf_enabled || false) || false }}
107107
EXP: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.EXP || false) || false }}

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ param gpt5MiniModelCapacity int = 50
137137
@description('Optional. GPT image model deployment type. Defaults to GlobalStandard.')
138138
param gptImageModelDeploymentType string = 'GlobalStandard'
139139

140-
@description('Optional. gpt-image-1.5 deployment capacity (RPM). Defaults to 5 to support concurrent marketing-image generation across multiple sessions.')
141-
param gptImageModelCapacity int = 5
140+
@description('Optional. gpt-image-1.5 deployment capacity (RPM). Defaults to 1 to support concurrent marketing-image generation across multiple sessions.')
141+
param gptImageModelCapacity int = 1
142142

143143
@description('Optional. The tags to apply to all deployed Azure resources.')
144144
param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = {}

infra/main_custom.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ param gpt4_1ModelCapacity int = 150
123123
@description('Optional. o4-mini deployment capacity (thousand TPM). Used by the Magentic manager (multi-turn planning + reflection). Defaults to 100.')
124124
param gptReasoningModelCapacity int = 100
125125

126-
@description('Optional. gpt-image-1.5 deployment capacity (RPM). Defaults to 5 to support concurrent marketing-image generation across multiple sessions.')
127-
param gptImageModelCapacity int = 5
126+
@description('Optional. gpt-image-1.5 deployment capacity (RPM). Defaults to 1 to support concurrent marketing-image generation across multiple sessions.')
127+
param gptImageModelCapacity int = 1
128128

129129
@description('Optional. The tags to apply to all deployed Azure resources.')
130130
param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = {}

infra/scripts/checkquota.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ SUBSCRIPTION_ID="${AZURE_SUBSCRIPTION_ID}"
77
GPT_MIN_CAPACITY="${GPT_MIN_CAPACITY}"
88
O4_MINI_MIN_CAPACITY="${O4_MINI_MIN_CAPACITY}"
99
GPT41_MINI_MIN_CAPACITY="${GPT41_MINI_MIN_CAPACITY}"
10-
GPT_IMAGE_MIN_CAPACITY="${GPT_IMAGE_MIN_CAPACITY:-4}"
10+
GPT_IMAGE_MIN_CAPACITY="${GPT_IMAGE_MIN_CAPACITY:-1}"
1111

1212
echo "🔄 Validating required environment variables..."
1313
if [[ -z "$SUBSCRIPTION_ID" || -z "$REGIONS" ]]; then
1414
echo "❌ ERROR: Missing required environment variables."
1515
echo "Required: AZURE_SUBSCRIPTION_ID, AZURE_REGIONS"
16-
echo "Optional: O4_MINI_MIN_CAPACITY (default: 50), GPT41_MINI_MIN_CAPACITY (default: 50), GPT_IMAGE_MIN_CAPACITY (default: 4)"
16+
echo "Optional: O4_MINI_MIN_CAPACITY (default: 50), GPT41_MINI_MIN_CAPACITY (default: 50), GPT_IMAGE_MIN_CAPACITY (default: 1)"
1717
exit 1
1818
fi
1919

0 commit comments

Comments
 (0)