Skip to content

Commit c2d50ed

Browse files
authored
Update artificial-intelligence.md (#44910)
Fix code snippets: Add missing id to only render the desired bits. /cc @gewarren - thank you for calling this out.
1 parent f0b6d9e commit c2d50ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/extensions/artificial-intelligence.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ The preceding example depends on the [📦 System.Threading.RateLimiting](https:
180180

181181
To simplify the composition of such components with others, component authors should create a `Use*` extension method for registering the component into a pipeline. For example, consider the following extension method:
182182

183-
:::code language="csharp" source="snippets/ai/AI.Shared/RateLimitingChatClientExtensions.cs":::
183+
:::code language="csharp" source="snippets/ai/AI.Shared/RateLimitingChatClientExtensions.cs" id="one":::
184184

185185
Such extensions can also query for relevant services from the DI container; the <xref:System.IServiceProvider> used by the pipeline is passed in as an optional parameter:
186186

187-
:::code language="csharp" source="snippets/ai/AI.Shared/RateLimitingChatClientExtensions.OptionalOverload.cs":::
187+
:::code language="csharp" source="snippets/ai/AI.Shared/RateLimitingChatClientExtensions.OptionalOverload.cs" id="two":::
188188

189189
The consumer can then easily use this in their pipeline, for example:
190190

0 commit comments

Comments
 (0)