Skip to content

Commit

Permalink
Update deployment configurations and fix variable references in Bicep…
Browse files Browse the repository at this point in the history
… and YAML files
  • Loading branch information
elbruno committed Feb 11, 2025
1 parent ecb065b commit c76c15e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/StoreRealtime/ConversationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ You are a useful assistant.
{
Instructions = prompt,
Voice = ConversationVoice.Shimmer,
InputTranscriptionOptions = new() { Model = "whisper-1" },
//ContentModalities = ConversationContentModalities.Audio,
InputTranscriptionOptions = new() { Model = "whisper-1" }
};

foreach (var tool in tools)
Expand Down
6 changes: 3 additions & 3 deletions src/eShopAppHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@
"gpt-4o-realtime-preview",
"2024-12-17",
"GlobalStandard",
5))
1))
.AddDeployment(new AzureOpenAIDeployment(embeddingsDeploymentName,
"text-embedding-ada-002",
"2"));

products.WithReference(appInsights)
.WithReference(aoai)
.WithEnvironment("AI_ChatDeploymentName", chatDeploymentName)
.WithEnvironment("AI_RealtimeDeploymentName", chatDeploymentName)
.WithEnvironment("AI_RealtimeDeploymentName", reatimeDeploymentName)
.WithEnvironment("AI_embeddingsDeploymentName", embeddingsDeploymentName);

storeRealtime.WithReference(appInsights)
.WithReference(aoai)
.WithEnvironment("AI_ChatDeploymentName", chatDeploymentName)
.WithEnvironment("AI_RealtimeDeploymentName", chatDeploymentName)
.WithEnvironment("AI_RealtimeDeploymentName", reatimeDeploymentName)
.WithEnvironment("AI_embeddingsDeploymentName", embeddingsDeploymentName);

store.WithReference(appInsights)
Expand Down
2 changes: 1 addition & 1 deletion src/eShopAppHost/infra/openai/openai.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource gpt_4o_realtime_preview 'Microsoft.CognitiveServices/accounts/deploymen
}
sku: {
name: 'GlobalStandard'
capacity: 5
capacity: 1
}
parent: openai
dependsOn: [
Expand Down
2 changes: 1 addition & 1 deletion src/eShopAppHost/infra/products.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ properties:
- name: AI_ChatDeploymentName
value: gpt-4o-mini
- name: AI_RealtimeDeploymentName
value: gpt-4o-mini
value: gpt-4o-realtime-preview
- name: AI_embeddingsDeploymentName
value: text-embedding-ada-002
- name: ASPNETCORE_FORWARDEDHEADERS_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion src/eShopAppHost/infra/realtimestore.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ properties:
- name: AI_ChatDeploymentName
value: gpt-4o-mini
- name: AI_RealtimeDeploymentName
value: gpt-4o-mini
value: gpt-4o-realtime-preview
- name: AI_embeddingsDeploymentName
value: text-embedding-ada-002
- name: ASPNETCORE_FORWARDEDHEADERS_ENABLED
Expand Down

0 comments on commit c76c15e

Please sign in to comment.