You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-15
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,24 @@ The AI assistant's role depends on the associated DevExpress Reports component:
15
15
16
16
**Please note that AI Assistant initialization takes time. The assistant tab appears once Microsoft Azure scans the source document on the server side.**
17
17
18
-
> [!NOTE]
19
-
> To run this project with an Early Access Preview build (EAP), install npm packages:
20
-
>
21
-
> ```
22
-
> npm install --legacy-peer-deps
23
-
> ```
24
-
25
18
## Implementation Details
26
19
27
20
### Common Settings
28
21
29
22
#### Add Personal Keys
30
23
24
+
> [!NOTE]
25
+
> DevExpress AI-powered extensions follow the "bring your own key" principle. DevExpress does not offer a REST API and does not ship any built-in LLMs/SLMs. You need an active Azure/Open AI subscription to obtain the REST API endpoint, key, and model deployment name. These variables must be specified at application startup to register AI clients and enable DevExpress AI-powered Extensions in your application.
26
+
31
27
You need to create an Azure OpenAI resource in the Azure portal to use AI Assistants for DevExpress Reporting. Refer to the following help topic for details: [Microsoft - Create and deploy an Azure OpenAI Service resource](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=web-portal).
32
28
33
29
Once you obtain a private endpoint and an API key, register them as `OPENAI_ENDPOINT` and `OPENAI_APIKEY` environment variables. The [EnvSettings.cs](./CS/ReportingApp/EnvSettings.cs) reads these settings. `DeploymentName` in this file is a name of your Azure model, for example, `GPT4o`:
34
30
35
31
```cs
36
32
publicstaticclassEnvSettings {
37
-
public static string AzureOpenAIEndpoint { get { return Environment.GetEnvironmentVariable("OPENAI_ENDPOINT"); } }
38
-
public static string AzureOpenAIKey { get { return Environment.GetEnvironmentVariable("OPENAI_APIKEY"); } }
39
-
public static string DeploymentName { get { return "GPT4o"; } }
33
+
publicstaticstringAzureOpenAIEndpoint { get { returnEnvironment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT"); } }
34
+
publicstaticstringAzureOpenAIKey { get { returnEnvironment.GetEnvironmentVariable("AZURE_OPENAI_APIKEY"); } }
35
+
publicstaticstringDeploymentName { get { return"GPT4o"; } }
40
36
}
41
37
```
42
38
@@ -49,12 +45,19 @@ Register AI services in your application. Add the following code to the _Program
-[AI-powered Extensions for DevExpress Reporting](https://docs.devexpress.com/XtraReports/405211/ai-powered-functionality/ai-for-devexpress-reporting?v=24.2)
276
+
270
277
## More Examples
271
278
272
279
-[Reporting for ASP.NET Core - Summarize and Translate DevExpress Reports Using Azure OpenAI](https://github.com/DevExpress-Examples/reporting-aspnet-core-ai-summarize-and-translate)
0 commit comments