Skip to content

Commit d13a150

Browse files
committed
update backlinks
1 parent aafb161 commit d13a150

File tree

61 files changed

+234
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+234
-244
lines changed

docs/ai/how-to/content-filtering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To use the sample code in this article, you need to create and assign a content
3232
1. Add the [`Azure.AI.OpenAI`](https://www.nuget.org/packages/Azure.AI.OpenAI) NuGet package to your project.
3333

3434
```dotnetcli
35-
dotnet add package Azure.AI.OpenAI
35+
dotnet package add Azure.AI.OpenAI
3636
```
3737
3838
1. Create a simple chat completion flow in your .NET app using the `OpenAiClient`. Replace the `YOUR_OPENAI_ENDPOINT`, `YOUR_OPENAI_KEY`, and `YOUR_OPENAI_DEPLOYMENT` values with your own.
@@ -48,7 +48,7 @@ To use the sample code in this article, you need to create and assign a content
4848
```output
4949
I am sorry if I have done anything to upset you.
5050
Is there anything I can do to assist you and make things better?
51-
51+
5252
Hate category is filtered: False with low severity.
5353
SelfHarm category is filtered: False with safe severity.
5454
Sexual category is filtered: False with safe severity.

docs/ai/quickstarts/get-started-openai.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ Complete the following steps to create a .NET console app to connect to an AI mo
5454
:::zone target="docs" pivot="azure-openai"
5555
5656
```bash
57-
dotnet add package Azure.Identity
58-
dotnet add package Azure.AI.OpenAI
59-
dotnet add package Microsoft.Extensions.AI.OpenAI
60-
dotnet add package Microsoft.Extensions.Configuration
61-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
57+
dotnet package add Azure.Identity
58+
dotnet package add Azure.AI.OpenAI
59+
dotnet package add Microsoft.Extensions.AI.OpenAI
60+
dotnet package add Microsoft.Extensions.Configuration
61+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
6262
```
6363
6464
:::zone-end
6565
6666
:::zone target="docs" pivot="openai"
6767
6868
```bash
69-
dotnet add package OpenAI
70-
dotnet add package Microsoft.Extensions.AI.OpenAI
71-
dotnet add package Microsoft.Extensions.Configuration
72-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
69+
dotnet package add OpenAI
70+
dotnet package add Microsoft.Extensions.AI.OpenAI
71+
dotnet package add Microsoft.Extensions.Configuration
72+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
7373
```
7474
7575
:::zone-end

docs/ai/quickstarts/quickstart-azure-openai-tool.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Quickstart - Extend OpenAI using Tools and execute a local Function with .NET
2+
title: Quickstart - Extend OpenAI using Tools and execute a local Function with .NET
33
description: Create a simple chat app using OpenAI and extend the model to execute a local function.
44
ms.date: 07/14/2024
55
ms.topic: quickstart
@@ -54,23 +54,23 @@ Complete the following steps to create a .NET console app to connect to an AI mo
5454
:::zone target="docs" pivot="azure-openai"
5555
5656
```bash
57-
dotnet add package Azure.Identity
58-
dotnet add package Azure.AI.OpenAI
59-
dotnet add package Microsoft.Extensions.AI
60-
dotnet add package Microsoft.Extensions.AI.OpenAI
61-
dotnet add package Microsoft.Extensions.Configuration
62-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
57+
dotnet package add Azure.Identity
58+
dotnet package add Azure.AI.OpenAI
59+
dotnet package add Microsoft.Extensions.AI
60+
dotnet package add Microsoft.Extensions.AI.OpenAI
61+
dotnet package add Microsoft.Extensions.Configuration
62+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
6363
```
6464
6565
:::zone-end
6666
6767
:::zone target="docs" pivot="openai"
6868
6969
```bash
70-
dotnet add package Microsoft.Extensions.AI
71-
dotnet add package Microsoft.Extensions.AI.OpenAI
72-
dotnet add package Microsoft.Extensions.Configuration
73-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
70+
dotnet package add Microsoft.Extensions.AI
71+
dotnet package add Microsoft.Extensions.AI.OpenAI
72+
dotnet package add Microsoft.Extensions.Configuration
73+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
7474
```
7575
7676
:::zone-end

docs/ai/quickstarts/quickstart-local-ai.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Complete the following steps to create a .NET console app that will connect to y
6565
1. Add the [Microsoft.Extensions.AI.Ollama](https://aka.ms/meai-ollama-nuget) packages to your app:
6666

6767
```dotnetcli
68-
dotnet add package Microsoft.Extensions.AI.Ollama --prerelease
68+
dotnet package add Microsoft.Extensions.AI.Ollama --prerelease
6969
```
7070

7171
1. Open the new app in your editor of choice, such as Visual Studio Code.
@@ -101,21 +101,21 @@ The Semantic Kernel SDK provides many services and features to connect to AI mod
101101
Tell me three facts about .NET.
102102
103103
AI response:
104-
1. **Cross-Platform Development:** One of the significant strengths of .NET,
104+
1. **Cross-Platform Development:** One of the significant strengths of .NET,
105105
particularly its newer iterations (.NET Core and .NET 5+), is cross-platform support.
106106
It allows developers to build applications that run on Windows, Linux, macOS,
107107
and various other operating systems seamlessly, enhancing flexibility and
108108
reducing barriers for a wider range of users.
109109
110110
2. **Rich Ecosystem and Library Support:** .NET has an incredibly rich ecosystem,
111-
comprising an extensive collection of libraries (such as those provided by the
112-
official NuGet Package Manager), tools, and services. This allows developers
113-
to work on web applications (.NET Framework for desktop apps and ASP.NET Core
111+
comprising an extensive collection of libraries (such as those provided by the
112+
official NuGet Package Manager), tools, and services. This allows developers
113+
to work on web applications (.NET Framework for desktop apps and ASP.NET Core
114114
for modern web applications), mobile applications (.NET MAUI or Xamarin.Forms),
115115
IoT solutions, AI/ML projects, and much more with a vast array of pre-built
116116
components available at their disposal.
117-
118-
3. **Type Safety:** .NET operates under the Common Language Infrastructure (CLI)
117+
118+
3. **Type Safety:** .NET operates under the Common Language Infrastructure (CLI)
119119
model and employs managed code for executing applications. This approach inherently
120120
offers strong type safety checks which help in preventing many runtime errors that
121121
are common in languages like C/C++. It also enables features such as garbage collection,
@@ -133,11 +133,11 @@ The Semantic Kernel SDK provides many services and features to connect to AI mod
133133
AI Response:
134134
**Cross-platform Capabilities:** .NET allows building for various operating systems
135135
through platforms like .NET Core, promoting accessibility (Windows, Linux, macOS).
136-
136+
137137
**Extensive Ecosystem:** Offers a vast library selection via NuGet and tools for web
138138
(.NET Framework), mobile development (Maui/Xamarin.Forms), IoT, AI, providing rich
139139
capabilities to developers.
140-
140+
141141
**Type Safety & Reliability:** .NET's CLI model enforces strong typing and automatic
142142
garbage collection, mitigating runtime errors, thus enhancing application stability.
143143
```

docs/ai/quickstarts/quickstart-openai-generate-images.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ Complete the following steps to create a .NET console app to connect to an AI mo
5151
:::zone target="docs" pivot="azure-openai"
5252
5353
```bash
54-
dotnet add package Azure.AI.OpenAI
55-
dotnet add package Microsoft.Extensions.Configuration
56-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
54+
dotnet package add Azure.AI.OpenAI
55+
dotnet package add Microsoft.Extensions.Configuration
56+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
5757
```
5858
5959
:::zone-end
6060
6161
:::zone target="docs" pivot="openai"
6262
6363
```bash
64-
dotnet add package OpenAI
65-
dotnet add package Microsoft.Extensions.Configuration
66-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
64+
dotnet package add OpenAI
65+
dotnet package add Microsoft.Extensions.Configuration
66+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
6767
```
6868
6969
:::zone-end

docs/ai/quickstarts/quickstart-openai-summarize-text.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ Complete the following steps to create a .NET console app to connect to an AI mo
5454
:::zone target="docs" pivot="azure-openai"
5555
5656
```bash
57-
dotnet add package Azure.Identity
58-
dotnet add package Azure.AI.OpenAI
59-
dotnet add package Microsoft.Extensions.AI.OpenAI
60-
dotnet add package Microsoft.Extensions.Configuration
61-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
57+
dotnet package add Azure.Identity
58+
dotnet package add Azure.AI.OpenAI
59+
dotnet package add Microsoft.Extensions.AI.OpenAI
60+
dotnet package add Microsoft.Extensions.Configuration
61+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
6262
```
6363
6464
:::zone-end
6565
6666
:::zone target="docs" pivot="openai"
6767
6868
```bash
69-
dotnet add package OpenAI
70-
dotnet add package Microsoft.Extensions.AI.OpenAI
71-
dotnet add package Microsoft.Extensions.Configuration
72-
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
69+
dotnet package add OpenAI
70+
dotnet package add Microsoft.Extensions.AI.OpenAI
71+
dotnet package add Microsoft.Extensions.Configuration
72+
dotnet package add Microsoft.Extensions.Configuration.UserSecrets
7373
```
7474
7575
:::zone-end

docs/ai/semantic-kernel-dotnet-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The Semantic Kernel SDK is available as a NuGet package for .NET and integrates
2727
Install the [`Microsoft.SemanticKernel`](https://www.nuget.org/packages/Microsoft.SemanticKernel) package using the following command:
2828

2929
```dotnetcli
30-
dotnet add package Microsoft.SemanticKernel
30+
dotnet package add Microsoft.SemanticKernel
3131
```
3232

3333
> [!NOTE]

docs/architecture/modern-web-apps-azure/work-with-data-in-asp-net-core-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ If you're writing a new ASP.NET Core application that needs to work with relatio
2323
To use EF Core with a SQL Server database, run the following dotnet CLI command:
2424

2525
```dotnetcli
26-
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
26+
dotnet package add Microsoft.EntityFrameworkCore.SqlServer
2727
```
2828

2929
To add support for an InMemory data source, for testing:
3030

3131
```dotnetcli
32-
dotnet add package Microsoft.EntityFrameworkCore.InMemory
32+
dotnet package add Microsoft.EntityFrameworkCore.InMemory
3333
```
3434

3535
### The DbContext

docs/azure/sdk/aspnetcore-guidance.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ Complete the following steps to register the services you need:
3434
1. Add the [Microsoft.Extensions.Azure](https://www.nuget.org/packages/Microsoft.Extensions.Azure) package:
3535

3636
```dotnetcli
37-
dotnet add package Microsoft.Extensions.Azure
37+
dotnet package add Microsoft.Extensions.Azure
3838
```
3939
4040
2. Add the relevant `Azure.*` service client packages:
4141
4242
```dotnetcli
43-
dotnet add package Azure.Security.KeyVault.Secrets
44-
dotnet add package Azure.Storage.Blobs
45-
dotnet add package Azure.Messaging.ServiceBus
43+
dotnet package add Azure.Security.KeyVault.Secrets
44+
dotnet package add Azure.Storage.Blobs
45+
dotnet package add Azure.Messaging.ServiceBus
4646
```
4747
4848
3. In the `Program.cs` file of your app, invoke the <xref:Microsoft.Extensions.Azure.AzureClientServiceCollectionExtensions.AddAzureClients%2A> extension method from the `Microsoft.Extensions.Azure` library to register a client to communicate with each Azure service. Some client libraries provide additional [subclients](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-subclients) for specific subgroups of Azure service functionality. You can register such subclients for dependency injection via the <xref:Microsoft.Extensions.Azure.AzureClientFactoryBuilder.AddClient%2A> extension method.
@@ -77,7 +77,7 @@ Use the [Azure Identity](/dotnet/api/overview/azure/identity-readme) library for
7777
1. Add the [Azure.Identity](https://www.nuget.org/packages/Azure.Identity) package:
7878
7979
```dotnetcli
80-
dotnet add package Azure.Identity
80+
dotnet package add Azure.Identity
8181
```
8282
8383
1. In the `Program.cs` file of your app, invoke the <xref:Microsoft.Extensions.Azure.AzureClientFactoryBuilder.UseCredential%2A> extension method from the `Microsoft.Extensions.Azure` library to set a shared `DefaultAzureCredential` instance for all registered Azure service clients:

docs/azure/sdk/dependency-injection.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ To register and configure service clients from an [`Azure.`-prefixed package](pa
1717
1. Install the [Microsoft.Extensions.Azure](https://www.nuget.org/packages/Microsoft.Extensions.Azure) package in your project:
1818

1919
```dotnetcli
20-
dotnet add package Microsoft.Extensions.Azure
20+
dotnet package add Microsoft.Extensions.Azure
2121
```
2222
2323
1. Install the [Azure.Identity](https://www.nuget.org/packages/Azure.Identity) package to configure a `TokenCredential` type to use for authenticating all registered clients that accept such a type:
2424
2525
```dotnetcli
26-
dotnet add package Azure.Identity
26+
dotnet package add Azure.Identity
2727
```
2828
2929
For demonstration purposes, the sample code in this article uses the Key Vault Secrets, Blob Storage, Service Bus, and Azure OpenAI libraries. Install the following packages to follow along:
3030
3131
```dotnetcli
32-
dotnet add package Azure.Security.KeyVault.Secrets
33-
dotnet add package Azure.Storage.Blobs
34-
dotnet add package Azure.Messaging.ServiceBus
35-
dotnet add package Azure.AI.OpenAI
32+
dotnet package add Azure.Security.KeyVault.Secrets
33+
dotnet package add Azure.Storage.Blobs
34+
dotnet package add Azure.Messaging.ServiceBus
35+
dotnet package add Azure.AI.OpenAI
3636
```
3737

3838
## Register clients and subclients
@@ -75,19 +75,19 @@ public class MyApiController : ControllerBase
7575
{
7676
private readonly BlobServiceClient _blobServiceClient;
7777
private readonly ServiceBusSender _serviceBusSender;
78-
78+
7979
public MyApiController(
8080
BlobServiceClient blobServiceClient,
8181
IAzureClientFactory<ServiceBusSender> senderFactory)
8282
{
8383
_blobServiceClient = blobServiceClient;
8484
_serviceBusSender = senderFactory.CreateClient("myQueueName");
8585
}
86-
86+
8787
[HttpGet]
8888
public async Task<IEnumerable<string>> Get()
8989
{
90-
BlobContainerClient containerClient =
90+
BlobContainerClient containerClient =
9191
_blobServiceClient.GetBlobContainerClient("demo");
9292
var results = new List<string>();
9393

@@ -276,7 +276,7 @@ At some point, you may want to change the default settings for a service client.
276276
```
277277

278278
You can change the retry policy to suit your needs like so:
279-
279+
280280
```csharp
281281
builder.Services.AddAzureClients(clientBuilder =>
282282
{

0 commit comments

Comments
 (0)