Skip to content

Commit ef5011d

Browse files
committed
Add README to demos
1 parent e88c9cc commit ef5011d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

winforms/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Explore the Telerik UI for WinForms Smart (AI) component demos.
2+
3+
The project showcases 2 demos.
4+
5+
1. RichTextEditor Smart (AI) Content Generation
6+
2. Spreadsheet Smart (AI) Function
7+
8+
### RichTextBox
9+
The RichTextEditor demo uses on OpenAI service to return a suggestion according to the the text in the current paragraph and the provided context.
10+
11+
#### How to run
12+
To run the RichTextBox demo, replace your Azure/Open AI credentials inside `MainForm.cs` file, then run the project and type something then wait for a response (it will appear as a grey text).
13+
14+
If you want to use different AI Service, you will need to rewrite the `CallOpenAIApi()` method and call API to your preferred model.
15+
16+
#### Consideration before using in production
17+
Keep in mind, that for the purpose of the demo,
18+
- We send the whole document to provide context for the service.
19+
20+
### Spreadsheet
21+
The Spreadsheet example creates a custom function that contains specific questions. We use these questions to ask the the Open AI service for answers based on some context that is provided. The result may no be exactly the same when running the example several times.
22+
23+
#### How to run
24+
To run the Spreadsheet demo, replace your Azure/Open AI credentials inside `MainForm.cs` file, then run the project and copy the AI formulas in the subsequent cells and wait for the service to provide the angers.
25+
26+
If you want to use different AI Service, you will need to rewrite the `CallOpenAIApi()` method and call API to your preferred model.

0 commit comments

Comments
 (0)