Skip to content

Commit

Permalink
feat: swicth chat model to gpt-4-turbo (#65)
Browse files Browse the repository at this point in the history
* feat: swicth chat model to gpt-4-turbo

* docs: update cost estimate
  • Loading branch information
sinedied authored May 6, 2024
1 parent 5ac5560 commit c26460e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/cost.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Cost estimation

Pricing varies per region and usage, so it isn't possible to predict exact costs for your usage.
However, you can use the [Azure pricing calculator](https://azure.com/e/a5769032546440dc98285eaba6bd5423) for the resources below to get an estimate.
However, you can use the [Azure pricing calculator](https://azure.com/e/c504007c9f024699a37f5d947dbb1e79) for the resources below to get an estimate.

- Azure Functions: Consumption plan, Free for the first 1M executions. Pricing per execution and memory used. [Pricing](https://azure.microsoft.com/pricing/details/functions/)
- Azure Static Web Apps: Free tier, 100GB bandwidth. Pricing per GB served. [Pricing](https://azure.microsoft.com/pricing/details/app-service/static/)
Expand Down
2 changes: 1 addition & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ param webappLocation string // Set in main.parameters.json
param chatModelName string // Set in main.parameters.json
param chatDeploymentName string = chatModelName
param chatModelVersion string // Set in main.parameters.json
param chatDeploymentCapacity int = 30
param chatDeploymentCapacity int = 15
param embeddingsModelName string // Set in main.parameters.json
param embeddingsModelVersion string // Set in main.parameters.json
param embeddingsDeploymentName string = embeddingsModelName
Expand Down
4 changes: 2 additions & 2 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"value": "${AZURE_OPENAI_LOCATION=eastus2}"
},
"chatModelName": {
"value": "${AZURE_OPENAI_API_MODEL=gpt-35-turbo}"
"value": "${AZURE_OPENAI_API_MODEL=gpt-4}"
},
"chatModelVersion": {
"value": "${AZURE_OPENAI_API_MODEL_VERSION=0613}"
"value": "${AZURE_OPENAI_API_MODEL_VERSION=turbo-2024-04-09}"
},
"embeddingsModelName": {
"value": "${AZURE_OPENAI_API_EMBEDDINGS_MODEL=text-embedding-ada-002}"
Expand Down

0 comments on commit c26460e

Please sign in to comment.