Skip to content

Commit 34e96a6

Browse files
authored
Merge pull request #1622 from scottaddie/scottaddie/aoai-migration
Edit pass on Azure OpenAI .NET migration guide
2 parents 4e7d87c + e494657 commit 34e96a6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

articles/ai-services/openai/how-to/dotnet-migration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: How to migrate from Azure.AI.OpenAI 1.0 Beta to 2.0
33
titleSuffix: Azure OpenAI Service
4-
description: Learn about migrating to the latest release of the Azure OpenAI package for C#.
4+
description: Learn about migrating to the latest release of the Azure OpenAI package for .NET.
55
author: mrbullwinkle
66
ms.author: mbullwin
77
ms.service: azure-ai-openai
8-
ms.custom: devx-track-python
8+
ms.custom: devx-track-dotnet
99
ms.topic: how-to
10-
ms.date: 11/18/2024
10+
ms.date: 11/19/2024
1111
manager: nitinme
1212
---
1313

@@ -21,13 +21,13 @@ manager: nitinme
2121

2222
Stable releases of `Azure.AI.OpenAI` are associated with a corresponding stable Azure OpenAI Service API version label, for example, `2024-10-21`.
2323

24-
```cmd
24+
```dotnetcli
2525
dotnet add package Azure.AI.OpenAI
2626
```
2727

2828
Beta releases of `Azure.AI.OpenAI` are associated with a corresponding preview Azure OpenAI Service API version label, for example, `2024-10-01-preview`.
2929

30-
```cmd
30+
```dotnetcli
3131
dotnet add package Azure.AI.OpenAI --prerelease
3232
```
3333

@@ -54,12 +54,12 @@ AzureOpenAIClient azureClient = new(
5454
ChatClient chatClient = azureClient.GetChatClient("my-gpt-4o-mini-deployment");
5555
```
5656

57-
Just like in 1.0, the new `AzureOpenAIClient` supports the use of Microsoft Entra ID Credentials when the `Azure.Identity` package is installed.
57+
Just like in 1.0, the new `AzureOpenAIClient` supports the use of Microsoft Entra ID credentials when the [Azure.Identity](/dotnet/api/overview/azure/identity-readme?view=azure-dotnet&preserve-view=true) package is installed.
5858

5959
```csharp
6060
// 2.0: Microsoft Entra ID via Azure.Identity's DefaultAzureCredential
6161
string endpoint = "https://myaccount.openai.azure.com/";
62-
var client = new OpenAIClient(new Uri(endpoint), new DefaultAzureCredential());
62+
AzureOpenAIClient client = new(new Uri(endpoint), new DefaultAzureCredential());
6363
```
6464

6565
---

articles/ai-services/openai/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ items:
187187
href: ./how-to/migration.md
188188
- name: Migrate to OpenAI JavaScript v4.x
189189
href: ./how-to/migration-javascript.md
190-
- name: Migrate to OpenAI C# 2.0
190+
- name: Migrate to Azure OpenAI .NET v2.0
191191
href: ./how-to/dotnet-migration.md
192192
- name: Models
193193
items:

0 commit comments

Comments
 (0)