Skip to content

Commit f58b129

Browse files
committed
chore(common): update readme
1 parent 35900e9 commit f58b129

File tree

2 files changed

+5
-7
lines changed
  • common/microsoft-extensions-ai-integration/AIPromptIntegration

2 files changed

+5
-7
lines changed

common/microsoft-extensions-ai-integration/AIPromptIntegration/AIPromptIntegration/Program.cs

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111

1212
builder.Services.AddTelerikBlazor();
1313

14-
builder.Services.AddSingleton(new AzureOpenAIClient(
15-
//new Uri("YOUR_AZURE_OPENAI_ENDPOINT"),
16-
//new AzureKeyCredential("YOUR_AZURE_OPENAI_CREDENTIAL"))
17-
new Uri("https://ai-explorations.openai.azure.com"),
18-
new AzureKeyCredential("---")));
14+
//builder.Services.AddSingleton(new AzureOpenAIClient(
15+
// new Uri("YOUR_AZURE_OPENAI_ENDPOINT"),
16+
// new AzureKeyCredential("YOUR_AZURE_OPENAI_CREDENTIAL")));
1917

2018
builder.Services.AddChatClient(services => services.GetRequiredService<AzureOpenAIClient>().AsChatClient("gpt-4o-mini"));
2119

common/microsoft-extensions-ai-integration/AIPromptIntegration/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
This project demonstrates the [integration of the `Microsoft.Extensions.AI` package with the `AIPrompt` component](https://www.telerik.com/blazor-ui/documentation/common-features/microsoft-extensions-ai-integration). The integration enables AI-powered interactions using **Azure OpenAI**, leveraging the built-in [`IChatClient` service](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.ai.ichatclient?view=net-9.0-pp).
5+
This project demonstrates the [integration of the `Microsoft.Extensions.AI` package with the `AIPrompt` component](https://www.telerik.com/blazor-ui/documentation/common-features/microsoft-extensions-ai-integration). The integration enables AI-powered interactions leveraging the built-in [`IChatClient` service](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.ai.ichatclient?view=net-9.0-pp). The example uses **Azure OpenAI**, but you can use any service supported by `Microsoft.Extensions.AI`.
66

77
## About `Microsoft.Extensions.AI`
88

@@ -17,7 +17,7 @@ The [`Microsoft.Extensions.AI` package](https://learn.microsoft.com/en-us/dotnet
1717

1818
## Setup & Configuration
1919

20-
To run the project successfully, you need to provide your **Azure OpenAI URI** and **API key**.
20+
To run the project successfully, you need to provide your **Azure OpenAI URI** and **API key**. The steps apply to using **Azure Open AI** and the configuration may be different if you are using a different model. Refer to the official Microsoft documentation to see how to configure other models.
2121

2222
### Steps:
2323

0 commit comments

Comments
 (0)