Skip to content

Commit

Permalink
feat: make it easier to use gpt4
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Oct 31, 2023
1 parent d83804b commit b8a57e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ Technology comparison:
<details><a id="switch-gpt4"></a>
<summary>How do you use GPT-4 with this sample?</summary>

In `infra/main.bicep`, change `chatGptModelName` to 'gpt-4' instead of 'gpt-35-turbo'. You may also need to adjust the capacity above that line depending on how much TPM your account is allowed.
Run these commands:
```bash
azd env set AZURE_OPENAI_CHATGPT_MODEL gpt-4
```
You may also need to adjust the capacity in `infra/main.bicep` file, depending on how much TPM your account is allowed.

</details>
<details><a id="chat-ask-diff"></a>
Expand Down
4 changes: 2 additions & 2 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ param formRecognizerSkuName string = 'S0'

param chatGptDeploymentName string // Set in main.parameters.json
param chatGptDeploymentCapacity int = 30
param chatGptModelName string = 'gpt-35-turbo'
param chatGptModelVersion string = '0613'
param chatGptModelName string // Set in main.parameters.json
param chatGptModelVersion string // Set in main.parameters.json
param embeddingDeploymentName string = 'embedding'
param embeddingDeploymentCapacity int = 30
param embeddingModelName string = 'text-embedding-ada-002'
Expand Down
6 changes: 6 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"storageSkuName": {
"value": "${AZURE_STORAGE_SKU=Standard_LRS}"
},
"chatGptModelName": {
"value": "${AZURE_OPENAI_CHATGPT_MODEL=gpt-35-turbo}"
},
"chatGptModelVersion": {
"value": "${AZURE_OPENAI_CHATGPT_MODEL_VERSION=0613}"
},
"chatGptDeploymentName": {
"value": "${AZURE_OPENAI_CHATGPT_DEPLOYMENT=chat}"
},
Expand Down

0 comments on commit b8a57e5

Please sign in to comment.