Skip to content

Commit 8769821

Browse files
authored
Update model references from gpt-35-turbo to gpt-4o (#1080)
Update model references from gpt-35-turbo to gpt-4o
1 parent 850a32c commit 8769821

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You will need the following items to run the sample:
3030

3131
| AI Service | Requirement |
3232
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33-
| Azure OpenAI | - [Access](https://aka.ms/oai/access)<br>- [Resource](https://learn.microsoft.com/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource)<br>- [Deployed models](https://learn.microsoft.com/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#deploy-a-model) (`gpt-35-turbo` and `text-embedding-ada-002`) <br>- [Endpoint](https://learn.microsoft.com/azure/ai-services/openai/tutorials/embeddings?tabs=command-line#retrieve-key-and-endpoint)<br>- [API key](https://learn.microsoft.com/azure/ai-services/openai/tutorials/embeddings?tabs=command-line#retrieve-key-and-endpoint) |
33+
| Azure OpenAI | - [Access](https://aka.ms/oai/access)<br>- [Resource](https://learn.microsoft.com/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource)<br>- [Deployed models](https://learn.microsoft.com/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#deploy-a-model) (`gpt-4o` and `text-embedding-ada-002`) <br>- [Endpoint](https://learn.microsoft.com/azure/ai-services/openai/tutorials/embeddings?tabs=command-line#retrieve-key-and-endpoint)<br>- [API key](https://learn.microsoft.com/azure/ai-services/openai/tutorials/embeddings?tabs=command-line#retrieve-key-and-endpoint) |
3434
| OpenAI | - [Account](https://platform.openai.com/docs/overview)<br>- [API key](https://platform.openai.com/api-keys) |
3535

3636
# Instructions
@@ -66,7 +66,7 @@ You will need the following items to run the sample:
6666
- `API_KEY`: The `API key` for Azure OpenAI or for OpenAI.
6767
- `AZURE_OPENAI_ENDPOINT`: The Azure OpenAI resource `Endpoint` address. This is only required when using Azure OpenAI, omit `-Endpoint` if using OpenAI.
6868

69-
- > **IMPORTANT:** For `AzureOpenAI`, if you deployed models `gpt-35-turbo` and `text-embedding-ada-002` with custom names (instead of the default names), also use the parameters:
69+
- > **IMPORTANT:** For `AzureOpenAI`, if you deployed models `gpt-4o` and `text-embedding-ada-002` with custom names (instead of the default names), also use the parameters:
7070
7171
```powershell
7272
-CompletionModel {DEPLOYMENT_NAME} -EmbeddingModel {DEPLOYMENT_NAME}
@@ -142,7 +142,7 @@ You will need the following items to run the sample:
142142
- `AZURE_OPENAI_ENDPOINT`: The Azure OpenAI resource `Endpoint` address.
143143
- `API_KEY`: The `API key` for Azure OpenAI.
144144

145-
**IMPORTANT:** If you deployed models `gpt-35-turbo` and `text-embedding-ada-002`
145+
**IMPORTANT:** If you deployed models `gpt-4o` and `text-embedding-ada-002`
146146
with custom names (instead of the default names), you need to specify
147147
the deployment names with three additional parameters:
148148

memorypipeline/appsettings.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@
141141
// - Auth is the authentication type: "APIKey" or "AzureIdentity".
142142
// - APIKey is the key generated to access the service.
143143
// - Endpoint is the service endpoint url.
144-
// - Deployment is a completion model (e.g., gpt-35-turbo, gpt-4).
144+
// - Deployment is a completion model (e.g., gpt-4, gpt-4o).
145145
// - APIType is the type of completion model: "ChatCompletion" or "TextCompletion".
146146
// - MaxRetries is the maximum number of retries for a failed request.
147147
//
148148
"AzureOpenAIText": {
149149
"Auth": "ApiKey",
150150
//"APIKey": "", // dotnet user-secrets set "SemanticMemory:Services:AzureOpenAIText:APIKey" "MY_AZUREOPENAI_KEY"
151151
"Endpoint": "",
152-
"Deployment": "gpt-35-turbo",
152+
"Deployment": "gpt-4o",
153153
"APIType": "ChatCompletion",
154154
"MaxRetries": 10
155155
},
@@ -158,7 +158,7 @@
158158
// - Auth is the authentication type: "APIKey" or "AzureIdentity".
159159
// - APIKey is the key generated to access the service.
160160
// - Endpoint is the service endpoint url.
161-
// - Deployment is a embedding model (e.g., gpt-35-turbo, gpt-4).
161+
// - Deployment is an embedding model (e.g., text-embedding-ada-002).
162162
//
163163
"AzureOpenAIEmbedding": {
164164
"Auth": "ApiKey",
@@ -168,7 +168,7 @@
168168
},
169169
//
170170
// AI completion and embedding configuration for OpenAI services.
171-
// - TextModel is a completion model (e.g., gpt-35-turbo, gpt-4).
171+
// - TextModel is a completion model (e.g., gpt-4, gpt-4o).
172172
// - EmbeddingModelSet is an embedding model (e.g., "text-embedding-ada-002").
173173
// - APIKey is the key generated to access the service.
174174
// - OrgId is the optional OpenAI organization id/key.

scripts/.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Default environment file to be read by scripts
22

33
# Default values
4-
ENV_COMPLETION_MODEL_OPEN_AI="gpt-3.5-turbo"
5-
ENV_COMPLETION_MODEL_AZURE_OPEN_AI="gpt-35-turbo"
4+
ENV_COMPLETION_MODEL_OPEN_AI="gpt-4o"
5+
ENV_COMPLETION_MODEL_AZURE_OPEN_AI="gpt-4o"
66
ENV_EMBEDDING_MODEL="text-embedding-ada-002"
77
ENV_ASPNETCORE="Development"
88
ENV_INSTANCE="https://login.microsoftonline.com"

scripts/Variables.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Default environment file to be read by scripts
22

33
# Default values
4-
$varCompletionModelOpenAI = "gpt-3.5-turbo"
5-
$varCompletionModelAzureOpenAI = "gpt-35-turbo"
4+
$varCompletionModelOpenAI = "gpt-4o"
5+
$varCompletionModelAzureOpenAI = "gpt-4o"
66
$varEmbeddingModel = "text-embedding-ada-002"
77
$varASPNetCore = "Development"
88
$varInstance = "https://login.microsoftonline.com"

scripts/deploy/main.bicep

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ param webSearcherPackageUri string = 'https://aka.ms/copilotchat/websearcher/lat
3232
param aiService string = 'AzureOpenAI'
3333

3434
@description('Model to use for chat completions')
35-
param completionModel string = 'gpt-35-turbo'
35+
param completionModel string = 'gpt-4o'
3636

3737
@description('Model to use for text embeddings')
3838
param embeddingModel string = 'text-embedding-ada-002'

scripts/deploy/main.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.28.1.47646",
8-
"templateHash": "7267170677416144946"
8+
"templateHash": "18195377528136882013"
99
}
1010
},
1111
"parameters": {
@@ -67,7 +67,7 @@
6767
},
6868
"completionModel": {
6969
"type": "string",
70-
"defaultValue": "gpt-35-turbo",
70+
"defaultValue": "gpt-4o",
7171
"metadata": {
7272
"description": "Model to use for chat completions"
7373
}

webapi/appsettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
// - Auth is the authentication type: "APIKey" or "AzureIdentity".
310310
// - APIKey is the key generated to access the service.
311311
// - Endpoint is the service endpoint url.
312-
// - Deployment is a embedding model (e.g., gpt-35-turbo, gpt-4).
312+
// - Deployment is an embedding model (e.g., text-embedding-ada-002).
313313
//
314314
"AzureOpenAIEmbedding": {
315315
"Auth": "ApiKey",

0 commit comments

Comments
 (0)