Skip to content

Commit c7b4306

Browse files
authored
chore(common): Remove incomplete code block (#2918)
1 parent cf45532 commit c7b4306

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: common-features/microsoft-extensions-ai-integration.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,7 @@ To integrate the **Microsoft.Extensions.AI** library with your AIPrompt componen
2222
>
2323
> When using the Telerik AIPrompt component with the Microsoft AI library, do not subscribe to the `OnPromptRequest` event.
2424
25-
**Microsoft.Extensions.AI provides** a simple integration with various models where the configuration slightly differs depending on the model. The example below shows usage of [Azure OpenAI](https://www.nuget.org/packages/Azure.AI.OpenAI) and you may [explore some other examples with different models in this sample application](https://github.com/telerik/blazor-ui/tree/master/common/microsoft-extensions-ai-integration/AIPromptIntegration).
26-
27-
>caption Startup.cs:
28-
29-
<div class="skip-repl"></div>
30-
````C#
31-
services.AddSingleton(new AzureOpenAIClient(
32-
new Uri("YOUR_AZURE_OPENAI_ENDPOINT"),
33-
new AzureKeyCredential("YOUR_AZURE_OPENAI_CREDENTIAL")));
34-
35-
services.AddChatClient(services => services.GetRequiredService<AzureOpenAIClient>().AsChatClient("gpt-4o-mini"));
36-
````
25+
**Microsoft.Extensions.AI** provides a simple integration with various models where the configuration slightly differs depending on the model. [Explore examples with different models in this sample application](https://github.com/telerik/blazor-ui/tree/master/common/microsoft-extensions-ai-integration/AIPromptIntegration).
3726

3827
## See Also
3928

0 commit comments

Comments
 (0)