Skip to content

Commit

Permalink
add gpt-4-32k as default model in the apps
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomarin committed Oct 17, 2023
1 parent 5ad69d4 commit 5749d9a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ zip -j backend.zip ../../common/* ./*
az login -i
az webapp deployment source config-zip --resource-group "<resource-group-name>" --name "<name-of-backend-app-service>" --src "backend.zip"
```
**Note**: If you get this error: `An error occured during deployment. Status Code: 401`. **Cause**: Some FDPO Azure Subscriptions disable Azure Web Apps Basic Authentication every minute (don't know why). **Solution**: before running the above `az webapp deployment` command, make sure that your backend azure web app has Basic Authentication ON. In the Azure Portal, you can find this settting in: `Configuration->General Settings`.
**Note**: If you get this error: `An error occured during deployment. Status Code: 401`. **Cause**: Some FDPO Azure Subscriptions disable Azure Web Apps Basic Authentication every minute (don't know why). **Solution**: before running the above `az webapp deployment` command, make sure that your backend azure web app has `Basic Authentication ON` and `HTTPS Only ON`. In the Azure Portal, you can find this settting in: `Configuration->General Settings`.
Don't worry if after running the command it says retrying many times, the zip files already uploaded and is building.

5. In the Azure Portal: **Wait around 5 minutes** and test your bot by going to your Azure Bot Service created in Step 2 and clicking on: **Test in Web Chat**
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/azuredeploy-backend.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ param azureOpenAIName string
param azureOpenAIAPIKey string

@description('Optional. The model name for the Azure OpenAI service.')
param azureOpenAIModelName string = 'gpt-4'
param azureOpenAIModelName string = 'gpt-4-32k'

@description('Optional. The API version for the Azure OpenAI service.')
param azureOpenAIAPIVersion string = '2023-05-15'
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/azuredeploy-backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"azureOpenAIModelName": {
"type": "string",
"defaultValue": "gpt-4",
"defaultValue": "gpt-4-32k",
"metadata": {
"description": "Optional. The model name for the Azure OpenAI service."
}
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ zip frontend.zip ./*
zip frontend.zip ./pages/*
zip -j frontend.zip ../../common/*
```
3. Using the Azure CLI deploy the bot code to the Azure App Service created on Step 2
3. Using the Azure CLI deploy the frontend code to the Azure App Service created on Step 2
```bash
az login -i
az webapp deployment source config-zip --resource-group "<resource-group-name>" --name "<name-of-frontend-app-service>" --src "frontend.zip"
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/azuredeploy-frontend.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ param azureOpenAIName string
param azureOpenAIAPIKey string

@description('Optional. The model name of the Azure OpenAI.')
param azureOpenAIModelName string = 'gpt-4'
param azureOpenAIModelName string = 'gpt-4-32k'

@description('Optional. The API version of the Azure OpenAI.')
param azureOpenAIAPIVersion string = '2023-05-15'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/azuredeploy-frontend.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"azureOpenAIModelName": {
"type": "string",
"defaultValue": "gpt-4",
"defaultValue": "gpt-4-32k",
"metadata": {
"description": "Optional. The model name of the Azure OpenAI."
}
Expand Down
2 changes: 1 addition & 1 deletion azuredeploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ resource azureSearch 'Microsoft.Search/searchServices@2021-04-01-Preview' = {
replicaCount: azureSearchReplicaCount
partitionCount: azureSearchPartitionCount
hostingMode: azureSearchHostingMode
semanticSearch: 'free'
semanticSearch: 'standard'
}
}

Expand Down
2 changes: 1 addition & 1 deletion azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"replicaCount": "[parameters('azureSearchReplicaCount')]",
"partitionCount": "[parameters('azureSearchPartitionCount')]",
"hostingMode": "[parameters('azureSearchHostingMode')]",
"semanticSearch": "free"
"semanticSearch": "standard"
}
},
{
Expand Down

0 comments on commit 5749d9a

Please sign in to comment.