Skip to content

Commit 2ed3ee8

Browse files
authored
Fix provisioning for OpenAI models and -bicep arg (Azure#46905)
1 parent ab26547 commit 2ed3ee8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

sdk/provisioning/Azure.Provisioning.CloudMachine/src/AzureSdkExtensions/OpenAIFeature.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override void AddTo(CloudMachineInfrastructure cloudMachine)
4949
cloudMachine.PrincipalIdParameter)
5050
);
5151

52-
CognitiveServicesAccountDeployment chat = new("openai_deployment", "2023-05-01")
52+
CognitiveServicesAccountDeployment chat = new("openai_deployment_chat", "2023-05-01")
5353
{
5454
Parent = cognitiveServices,
5555
Name = cloudMachine.Id,
@@ -67,7 +67,7 @@ public override void AddTo(CloudMachineInfrastructure cloudMachine)
6767

6868
if (_embeddingsDeployment != null)
6969
{
70-
CognitiveServicesAccountDeployment embeddings = new("openai_deployment", "2023-05-01")
70+
CognitiveServicesAccountDeployment embeddings = new("openai_deployment_embedding", "2023-05-01")
7171
{
7272
Parent = cognitiveServices,
7373
Name = $"{cloudMachine.Id}-embedding",

sdk/provisioning/Azure.Provisioning.CloudMachine/tests/CloudMachineTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Azure.CloudMachine.Tests;
1717
public class CloudMachineTests
1818
{
1919
[Theory]
20-
[TestCase([new string[] { "--init" }])]
20+
[TestCase([new string[] { "-bicep" }])]
2121
[TestCase([new string[] { "" }])]
2222
public void Provisioning(string[] args)
2323
{
@@ -37,7 +37,7 @@ public void Provisioning(string[] args)
3737

3838
[Ignore("no recordings yet")]
3939
[Theory]
40-
[TestCase([new string[] { "--init" }])]
40+
[TestCase([new string[] { "-bicep" }])]
4141
[TestCase([new string[] { "" }])]
4242
public void Storage(string[] args)
4343
{
@@ -68,7 +68,7 @@ public void Storage(string[] args)
6868

6969
[Ignore("no recordings yet")]
7070
[Theory]
71-
[TestCase([new string[] { "--init" }])]
71+
[TestCase([new string[] { "-bicep" }])]
7272
[TestCase([new string[] { "" }])]
7373
public void OpenAI(string[] args)
7474
{
@@ -91,7 +91,7 @@ public void OpenAI(string[] args)
9191

9292
[Ignore("no recordings yet")]
9393
[Theory]
94-
[TestCase([new string[] { "--init" }])]
94+
[TestCase([new string[] { "-bicep" }])]
9595
[TestCase([new string[] { "" }])]
9696
public void KeyVault(string[] args)
9797
{
@@ -108,7 +108,7 @@ public void KeyVault(string[] args)
108108

109109
[Ignore("no recordings yet")]
110110
[Theory]
111-
[TestCase([new string[] { "--init" }])]
111+
[TestCase([new string[] { "-bicep" }])]
112112
[TestCase([new string[] { "" }])]
113113
public void Messaging(string[] args)
114114
{
@@ -130,7 +130,7 @@ public void Messaging(string[] args)
130130

131131
[Ignore("no recordings yet")]
132132
[Theory]
133-
[TestCase([new string[] { "--init" }])]
133+
[TestCase([new string[] { "-bicep" }])]
134134
[TestCase([new string[] { "" }])]
135135
public void Demo(string[] args)
136136
{

0 commit comments

Comments
 (0)