Skip to content

Commit

Permalink
[Cloud Machine] Rename CloudMachineInfrastructure and CloudMachineCli…
Browse files Browse the repository at this point in the history
…ent (#48130)
  • Loading branch information
ShivangiReja authored Feb 6, 2025
1 parent 002bc59 commit 4ef12b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using Azure.CloudMachine;
using OpenAI.Chat;

CloudMachineInfrastructure infrastructure = new();
ProjectInfrastructure infrastructure = new();
infrastructure.AddFeature(new OpenAIModelFeature("gpt-35-turbo", "0125"));
infrastructure.AddFeature(new OpenAIModelFeature("text-embedding-ada-002", "2", AIModelKind.Embedding));
infrastructure.AddFeature(new AppServiceFeature());
CloudMachineClient client = infrastructure.GetClient();
ProjectClient client = infrastructure.GetClient();

// the app can be called with -init switch to generate bicep and prepare for azd deployment.
if (infrastructure.TryExecuteCommand(args)) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.CloudMachine.All" Version="1.0.0-alpha.20241213.1" />
<PackageReference Include="Azure.CloudMachine.All" Version="1.0.0-alpha.20250205.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected internal override void EmitConnections(ConnectionCollection connection
/// <summary>
/// Emit any necessary resources for provisioning (currently no-op).
/// </summary>
/// <param name="cm">The CloudMachineInfrastructure context.</param>
/// <param name="cm">The ProjectInfrastructure context.</param>
/// <returns>A placeholder or no-op resource, as provisioning is out-of-band for now.</returns>
protected override ProvisionableResource EmitResources(ProjectInfrastructure cm)
{
Expand Down

0 comments on commit 4ef12b9

Please sign in to comment.