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: blazor/ai-assistview/accessibility.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ control: AI AssistView
7
7
documentation: ug
8
8
---
9
9
10
-
# Accessibility in Blazor AI AssistView component
10
+
# Accessibility in the Blazor AI AssistView component
11
11
12
-
The Blazor AI AssistView component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
12
+
The Blazor AI AssistView component follows established accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
13
13
14
-
The accessibility compliance for the Blazor AI AssistView component is outlined below.
14
+
The component’s accessibility compliance is summarized below.
15
15
16
16
| Accessibility Criteria | Compatibility |
17
17
| -- | -- |
@@ -45,7 +45,7 @@ The following ARIA attributes are used in the AI AssistView component:
45
45
| ------------ | ----------------------- |
46
46
|`role=button`| Indicates that the element is clickable and triggers an action when activated by the user. |
47
47
|`role=toolbar`| Specifies that the element is a toolbar. |
48
-
|`aria-label`|Defines a string value that labels an interactive element for accessibility. |
48
+
|`aria-label`|Provides an accessible name for interactive elements (for example, buttons, toolbar, or prompt input). |
49
49
|`aria-orientation`| Specifies the orientation of the toolbar. |
50
50
|`aria-disabled`| Indicates whether the toolbar or element is currently disabled and not interactive. |
51
51
|`aria-multiline`| Indicates that a textbox accepts multiple lines of input or only a single line. |
@@ -57,19 +57,19 @@ The following keyboard shortcuts are supported by the AI AssistView component.
57
57
| Windows | Mac | Actions |
58
58
| --- | --- | --- |
59
59
| <kbd>Enter</kbd> | <kbd>Enter</kbd> | Select the focused item. |
60
-
| <kbd>Tab</kbd> | <kbd>Tab</kbd> |Moves focus forward through the interactive elements. |
61
-
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> |Moves focus backward through the interactive elements. |
62
-
<b>AI AssistView Toolbars</b>|||
63
-
| <kbd>←</kbd> | <kbd>←</kbd> |Focuses the previous toolbar element. |
64
-
| <kbd>→</kbd> | <kbd>→</kbd> |Focuses the next toolbar element. |
| <kbd>←</kbd> | <kbd>←</kbd> |Move focus to the previous toolbar element. |
64
+
| <kbd>→</kbd> | <kbd>→</kbd> |Move focus to the next toolbar element. |
65
65
| <kbd>Enter</kbd> / <kbd>Space</kbd> | <kbd>Enter</kbd> / <kbd>Space</kbd> | Select the focused item or activate the selected option. |
66
-
| <kbd>Home</kbd> | <kbd>Home</kbd> |Moves focus to the first toolbar element. |
67
-
| <kbd>End</kbd> | <kbd>End</kbd> |Moves focus to the last toolbar element. |
66
+
| <kbd>Home</kbd> | <kbd>Home</kbd> |Move focus to the first toolbar element. |
67
+
| <kbd>End</kbd> | <kbd>End</kbd> |Move focus to the last toolbar element. |
68
68
69
69
## Ensuring accessibility
70
70
71
71
The Blazor AI AssistView component's accessibility levels are ensured through an [axe-core](https://www.nuget.org/packages/Deque.AxeCore.Playwright) with playwright tests.
72
72
73
73
## See also
74
74
75
-
*[Accessibility in Syncfusion<supstyle="font-size:70%">®</sup> Blazor components](https://blazor.syncfusion.com/documentation/common/accessibility)
75
+
* Accessibility in Syncfusion<supstyle="font-size:70%">®</sup> Blazor components(https://blazor.syncfusion.com/documentation/common/accessibility)
title: Open AI Integration with Blazor AI AssistView Component | Syncfusion
4
-
description: Checkout and learn about Open AI integration with Blazor AI AssistView component in Blazor WebAssembly Application.
3
+
title: Azure Open AI with Blazor AI AssistView Component | Syncfusion
4
+
description: Checkout and learn about Azure Open AI with Blazor AI AssistView component in Blazor WebAssembly Application.
5
5
platform: Blazor
6
6
control: AI AssistView
7
7
documentation: ug
8
8
---
9
9
10
-
# Integration of Open AI With Blazor AI AssistView component
10
+
# Integration of Azure OpenAI With Blazor AI AssistView component
11
11
12
-
The Syncfusion AI AssistView supports integration with [OpenAI](https://platform.openai.com/docs/overview), enabling advanced conversational AI features in your applications.
12
+
The Syncfusion AI AssistView supports integration with [Azure Open AI](https://microsoft.github.io/PartnerResources/skilling/ai-ml-academy/resources/openai), enabling advanced conversational AI features in your applications.
13
13
14
14
## Prerequisites
15
15
16
-
* OpenAI account to generate an API key for accessing the `OpenAI`API
17
-
* Syncfusion AI AssistView for Blazor `Syncfusion.Blazor.InteractiveChat` installed in your project.
16
+
- An Azure account with access to `Azure Open AI` services and a generated API key.
17
+
- Syncfusion AI AssistView for Blazor `Syncfusion.Blazor.InteractiveChat` installed in the project
18
18
19
19
## Getting Started with the AI AssistView Component
20
20
21
-
Before integrating Open AI, ensure that the Syncfusion AI AssistView is correctly rendered in your application:
21
+
Before integrating Azure OpenAI, ensure the Syncfusion AI AssistView component renders correctly in the application:
22
22
23
-
[Blazor Getting Started Guide](../getting-started)
23
+
[Blazor Getting Started Guide](../getting-started)
24
24
25
25
## Install Dependencies
26
26
27
27
Install the Syncfusion Blazor package in the application.
Install the Open AI AI package in the application.
35
+
Install the Markdown rendering package used to convert model responses to HTML.
36
36
37
37
```bash
38
38
39
-
Install-Package OpenAI
39
+
NuGet\Install-Package OpenAI
40
+
NuGet\Install-Package Azure.AI.OpenAI
41
+
NuGet\Install-Package Azure.Core
42
+
Nuget\Install-Package Markdig
40
43
41
44
```
42
45
43
-
## Generate API Key
46
+
Note: The sample below uses HttpClient directly and does not require the Azure/OpenAI SDKs.
44
47
45
-
1. Go to [Open AI](https://platform.openai.com/docs/overview) and sign in with your Google account. If you don’t have one, create a new account.
48
+
## Configure Azure Open AI
46
49
47
-
2. Once logged in, click on your profile icon in the top-right corner and select `API Keys` from the dropdown menu.
50
+
1. Log in to the [Azure Portal](https://portal.azure.com/#home) and navigate to your Azure Open AI resource.
48
51
49
-
3. Click the `+ Create new secret key` button. You’ll be prompted to name the key (optional). Confirm to generate the key.
52
+
2. Under Resource Management, select Keys and Endpoint to retrieve your API key and endpoint URL.
50
53
51
-
4. Your API key will be displayed once. Copy it and store it securely, as it won’t be shown again.
54
+
3. Copy the API key, endpoint, and deployment name (e.g., gpt-4o-mini). Ensure the API version (e.g., 2024-07-01-preview) matches your resource configuration.
52
55
53
-
> `Security Note`: Never commit the API key to version control. Use environment variables or a secret manager for production.
56
+
4. Store these values securely, as they will be used in your application.
54
57
55
-
## Integration Open AI with AI AssistView
58
+
> `Security Note`: expose your API key in client-side code for production applications. Use a server-side proxy or environment variables to manage sensitive information securely.
56
59
57
-
* Add your generated `API Key` at the line
60
+
## Integration Azure OpenAI with AI AssistView
58
61
59
-
```bash
62
+
- Configure your Azure OpenAI endpoint, API key, and deployment name in your Program.cs (or using your preferred configuration mechanism).
60
63
61
-
const string openaiApiKey = 'Place your API key here';
64
+
- Register the service for dependency injection.
62
65
63
-
```
66
+
- Inject and use the service in your Razor component.
Copy file name to clipboardExpand all lines: blazor/ai-assistview/appearance.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ documentation: ug
9
9
10
10
# Appearance in Blazor AI AssistView component
11
11
12
+
Customize the AI AssistView appearance by configuring width and height and by applying custom styles through the CssClass property.
13
+
12
14
## Setting width
13
15
14
16
You can use the [Width](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.InteractiveChat.SfAIAssistView.html#Syncfusion_Blazor_InteractiveChat_SfAIAssistView_Width) property to set the width of the AI AssistView. The default value is `100%`.
0 commit comments