-
Notifications
You must be signed in to change notification settings - Fork 0
VCL SmartCore AI example - Prepare Readme content #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AleksandrKrivopalov
merged 5 commits into
25.1.3+
from
dmitry-eliseev-devexpress-patch-1
Oct 8, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6cd899d
Update README.md
dmitry-eliseev-devexpress 8748e4c
README auto update [skip ci]
35927d8
Update README.md
dmitry-eliseev-devexpress 3fed006
README auto update [skip ci]
123b193
Add Object Inspector-related instructions
dmitry-eliseev-devexpress File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,31 +1,33 @@ | ||||||
| <!-- default badges list --> | ||||||
|  | ||||||
| [](https://supportcenter.devexpress.com/ticket/details/T1309851) | ||||||
| [](https://docs.devexpress.com/GeneralInformation/403183) | ||||||
| [](#does-this-example-address-your-development-requirementsobjectives) | ||||||
| <!-- default badges end --> | ||||||
| # DevExpress VCL/Delphi - Integrate SmartCore AI component library | ||||||
|
|
||||||
| This simple example integrates AI into DevExpress VCL Controls using the official Embarcader SmartCore AI component library available via the GetIt Package Manager. | ||||||
| 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`). | ||||||
| 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. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I got it right...
Suggested change
|
||||||
| 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)). | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| > [!NOTE] | ||||||
| > 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). | ||||||
| > 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). | ||||||
|
|
||||||
| <Screenshot or video goes here> | ||||||
| ## Prerequisites | ||||||
|
|
||||||
| ## Prerequisites | ||||||
|
|
||||||
| - Microsoft Windows 10 or newer | ||||||
| - Embarcadero RAD Studio IDE 13.0 or newer (Community Edition is not supported) | ||||||
| - The [SmartCore AI Components](https://blogs.embarcadero.com/introducing-the-smartcore-ai-components-pack/) package installed from GetIt | ||||||
| - DevExpress VCL Components v25.1.3 or newer | ||||||
| - Microsoft Windows 10 or newer | ||||||
| - Embarcadero RAD Studio IDE 13.0 or newer (Community Edition is not supported) | ||||||
| - The [SmartCore AI Components](https://blogs.embarcadero.com/introducing-the-smartcore-ai-components-pack/) package installed from GetIt | ||||||
| - DevExpress VCL Components v25.1.3 or newer | ||||||
|
|
||||||
| ## Running the example | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 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`: | ||||||
| To connect to an AI provider within this sample project, do the following: | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| 1. Open the main form in **Designer** mode. | ||||||
| 2. Select the OpenAI or Google Gemini provider component. | ||||||
| 3. Expand the `Params` node in the **Object Inspector** and paste a valid API key into the `APIKey` input box. | ||||||
| 4. Uncomment the `TdxSmartCoreAIChatClient.Create` call for the target AI provider: | ||||||
|
|
||||||
| ``` | ||||||
| procedure TSmartCoreAIDemoMainForm.FormCreate(Sender: TObject); | ||||||
|
|
@@ -47,9 +49,12 @@ end; | |||||
| > 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. | ||||||
|
|
||||||
| <!-- feedback --> | ||||||
| ## Does this example address your development requirements/objectives? | ||||||
|
|
||||||
| [<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) | ||||||
|
|
||||||
| ## Does this example address your development requirements/objectives? | ||||||
| [<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) | ||||||
| (you will be redirected to DevExpress.com to submit your response) | ||||||
| <!-- feedback end --> | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's up to you, but we didn't use "delphi" in the product name in previous examples. Do we need to highlight it for some reason in the repo name? Or we may add a tag to the repo right-side description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a copy from the previous example in this series:
I agree, I'll surely update this: