Skip to content

Commit e1b4923

Browse files
Merge pull request #1 from DevExpress-Examples/dmitry-eliseev-devexpress-patch-1
VCL SmartCore AI example - Prepare Readme content
2 parents 30d1878 + 123b193 commit e1b4923

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

README.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
<!-- default badges list -->
2-
![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/1072096986/25.1.3%2B)
32
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1309851)
43
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
54
[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)
65
<!-- default badges end -->
76
# DevExpress VCL/Delphi - Integrate SmartCore AI component library
87

9-
This simple example integrates AI into DevExpress VCL Controls using the official Embarcader SmartCore AI component library available via the GetIt Package Manager.
10-
VCL developers can switch between different AI providers and utilize commands that DevExpress AI Assistant adds to DevExpress Text Editors (such as `TcxMemo` or `TdxRichEditControl`).
8+
This example integrates AI into DevExpress VCL Controls using the official Embarcadero [SmartCore AI Components](https://blogs.embarcadero.com/introducing-the-smartcore-ai-components-pack/) pack available via the GetIt Package Manager.
9+
VCL developers can switch between different AI providers and execute commands that DevExpress AI Assistant adds to DevExpress Text Editors (such as [TcxMemo](https://docs.devexpress.com/VCL/cxMemo.TcxMemo) or [TdxRichEditControl](https://docs.devexpress.com/VCL/dxRichEdit.Control.TdxRichEditControl)).
1110

12-
![DevExpress VCL AI Example](./Images/vcl-text-editor-ai-demo.gif)
11+
![DevExpress VCL AI Example](/CS/Images/vcl-text-editor-ai-demo.gif)
1312

1413
> [!NOTE]
15-
> VCL developers can use either SmartCore AI library, plug in third-party libraries or leverage own implementation to support different AI providers. For example, the DevExpress VCL Rich Text Editor demo ("%Public%\DevExpress VCL Demos\MegaDemos\Product Demos\ExpressRichEditControl\dxAI.ChatClient.Azure.pas" uses our Azure OpenAI service deployment via a simple `TdxAIAzureChatClient` implementation (extends our base `TdxAIChatClient` API).
14+
> VCL developers can use either SmartCore AI Components, plug in third-party libraries, or leverage own implementation to support different AI providers. For example, the DevExpress VCL Rich Text Editor demo ("%Public%\DevExpress VCL Demos\MegaDemos\Product Demos\ExpressRichEditControl\dxAI.ChatClient.Azure.pas" uses our Azure OpenAI service deployment via a simple `TdxAIAzureChatClient` implementation (extends our base `TdxAIChatClient` API).
1615
17-
<Screenshot or video goes here>
16+
## Prerequisites
1817

19-
## Prerequisites
20-
21-
- Microsoft Windows 10 or newer
22-
- Embarcadero RAD Studio IDE 13.0 or newer (Community Edition is not supported)
23-
- The [SmartCore AI Components](https://blogs.embarcadero.com/introducing-the-smartcore-ai-components-pack/) package installed from GetIt
24-
- DevExpress VCL Components v25.1.3 or newer
18+
- Microsoft Windows 10 or newer
19+
- Embarcadero RAD Studio IDE 13.0 or newer (Community Edition is not supported)
20+
- The [SmartCore AI Components](https://blogs.embarcadero.com/introducing-the-smartcore-ai-components-pack/) package installed from GetIt
21+
- DevExpress VCL Components v25.1.3 or newer
2522

2623
## Running the example
2724

28-
To connect to an AI provider open the main form in designer, open editor for your driver of choice (OpenAI or Google Gemini in this example) and fill in API key. Then uncomment the `TdxSmartCoreAIChatClient.Create` call for the required AI provider`:
25+
To connect to an AI provider within this sample project, do the following:
26+
27+
1. Open the main form in **Designer** mode.
28+
2. Select the OpenAI or Google Gemini provider component.
29+
3. Expand the `Params` node in the **Object Inspector** and paste a valid API key into the `APIKey` input box.
30+
4. Uncomment the `TdxSmartCoreAIChatClient.Create` call for the target AI provider:
2931

3032
```
3133
procedure TSmartCoreAIDemoMainForm.FormCreate(Sender: TObject);
@@ -47,9 +49,12 @@ end;
4749
> 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 subscription for the required AI service 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.
4850
4951
<!-- feedback -->
50-
## Does this example address your development requirements/objectives?
51-
52-
[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-smartcoreai-memo-example&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-smartcoreai-memo-example&~~~was_helpful=no)
53-
52+
## Does this example address your development requirements/objectives?
53+
54+
[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-smartcoreai-memo-example&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=vcl-smartcoreai-memo-example&~~~was_helpful=no)
55+
5456
(you will be redirected to DevExpress.com to submit your response)
5557
<!-- feedback end -->
58+
59+
60+

0 commit comments

Comments
 (0)