Skip to content

Commit 6afd08f

Browse files
authored
Update artificial-intelligence.md (#44164)
Fix rendering issues.
1 parent 9ee3c61 commit 6afd08f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/core/extensions/artificial-intelligence.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Artificial Intelligence in .NET (Preview)
33
description: Learn how to use the Microsoft.Extensions.AI library to integrate and interact with various AI services in your .NET applications.
44
author: IEvangelist
55
ms.author: dapine
6-
ms.date: 12/17/2024
6+
ms.date: 01/06/2025
77
ms.collection: ce-skilling-ai-copilot
88
---
99

@@ -210,7 +210,7 @@ For scenarios where the developer would like to specify delegating implementatio
210210

211211
<xref:Microsoft.Extensions.AI.IChatClient> implementations will typically be provided to an application via [dependency injection (DI)](dependency-injection.md). In this example, an <xref:Microsoft.Extensions.Caching.Distributed.IDistributedCache> is added into the DI container, as is an `IChatClient`. The registration for the `IChatClient` employs a builder that creates a pipeline containing a caching client (which will then use an `IDistributedCache` retrieved from DI) and the sample client. The injected `IChatClient` can be retrieved and used elsewhere in the app.
212212

213-
::code language="csharp" source="snippets/ai/ConsoleAI.DependencyInjection/Program.cs":::
213+
:::code language="csharp" source="snippets/ai/ConsoleAI.DependencyInjection/Program.cs":::
214214

215215
The preceding example depends on the following NuGet packages:
216216

@@ -251,7 +251,7 @@ You can find actual concrete implementations in the following packages:
251251

252252
The primary operation performed with an <xref:Microsoft.Extensions.AI.IEmbeddingGenerator`2> is embedding generation, which is accomplished with its <xref:Microsoft.Extensions.AI.IEmbeddingGenerator`2.GenerateAsync*> method.
253253

254-
::code language="csharp" source="snippets/ai/ConsoleAI.CreateEmbeddings/Program.cs":::
254+
:::code language="csharp" source="snippets/ai/ConsoleAI.CreateEmbeddings/Program.cs":::
255255

256256
#### Custom `IEmbeddingGenerator` middleware
257257

0 commit comments

Comments
 (0)