Skip to content

Commit c1f9fc6

Browse files
authored
Merge pull request #7223 from syncfusion-content/988174-hf-blaz1
988174: Review corrections addressed
2 parents 979e630 + ede4df9 commit c1f9fc6

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

blazor/smart-ai-solutions/ai-samples/kanban/sentiment-analysis.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ensure the following NuGet packages are installed based on your chosen AI servic
3030
- **OllamaSharp**
3131

3232
{% tabs %}
33-
{% highlight C# tabtitle="Package Manager" %}
33+
{% highlight csharp tabtitle="Package Manager" %}
3434

3535
Install-Package Syncfusion.Blazor.Kanban -Version {{ site.releaseversion }}
3636
Install-Package Syncfusion.Blazor.Themes -Version {{ site.releaseversion }}
@@ -77,7 +77,7 @@ Generate an API key from OpenAI and set `openAIApiKey`. Specify the desired mode
7777
- Install the required NuGet packages:
7878

7979
{% tabs %}
80-
{% highlight C# tabtitle="Package Manager" %}
80+
{% highlight csharp tabtitle="Package Manager" %}
8181

8282
Install-Package Microsoft.Extensions.AI
8383
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -88,7 +88,7 @@ Install-Package Microsoft.Extensions.AI.OpenAI
8888
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
8989

9090
{% tabs %}
91-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
91+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
9292

9393
using Syncfusion.Blazor.AI;
9494
using Microsoft.Extensions.AI;
@@ -115,7 +115,7 @@ Deploy an Azure OpenAI Service resource and model as described in [Microsoft's d
115115
- Install the required NuGet packages:
116116

117117
{% tabs %}
118-
{% highlight C# tabtitle="Package Manager" %}
118+
{% highlight csharp tabtitle="Package Manager" %}
119119

120120
Install-Package Microsoft.Extensions.AI
121121
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -127,7 +127,7 @@ Install-Package Azure.AI.OpenAI
127127
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
128128

129129
{% tabs %}
130-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
130+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
131131

132132
using Syncfusion.Blazor.AI;
133133
using Azure.AI.OpenAI;
@@ -163,7 +163,7 @@ To use Ollama for self-hosted AI models:
163163
- Install the required NuGet packages:
164164

165165
{% tabs %}
166-
{% highlight C# tabtitle="Package Manager" %}
166+
{% highlight csharp tabtitle="Package Manager" %}
167167

168168
Install-Package Microsoft.Extensions.AI
169169
Install-Package OllamaSharp
@@ -174,7 +174,7 @@ Install-Package OllamaSharp
174174
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
175175

176176
{% tabs %}
177-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
177+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
178178

179179
using Syncfusion.Blazor.AI;
180180
using Microsoft.Extensions.AI;
@@ -202,7 +202,7 @@ Add the Syncfusion Blazor service to your **~/Program.cs** file. The configurati
202202
- **WebAssembly or Auto Mode**: Register the service in both the server-side **~/Program.cs** and client-side **~/Program.cs** files.
203203

204204
{% tabs %}
205-
{% highlight C# tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
205+
{% highlight csharp tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
206206

207207
using Syncfusion.Blazor;
208208

@@ -216,7 +216,7 @@ builder.Services.AddSyncfusionBlazor();
216216
var app = builder.Build();
217217

218218
{% endhighlight %}
219-
{% highlight C# tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
219+
{% highlight csharp tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
220220

221221
using Syncfusion.Blazor;
222222

blazor/smart-ai-solutions/ai-samples/kanban/smart-task-suggestion.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ensure the following NuGet packages are installed based on your chosen AI servic
3030
- **OllamaSharp**
3131

3232
{% tabs %}
33-
{% highlight C# tabtitle="Package Manager" %}
33+
{% highlight csharp tabtitle="Package Manager" %}
3434

3535
Install-Package Syncfusion.Blazor.Kanban -Version {{ site.releaseversion }}
3636
Install-Package Syncfusion.Blazor.Themes -Version {{ site.releaseversion }}
@@ -77,7 +77,7 @@ Generate an API key from OpenAI and set `openAIApiKey`. Specify the desired mode
7777
- Install the required NuGet packages:
7878

7979
{% tabs %}
80-
{% highlight C# tabtitle="Package Manager" %}
80+
{% highlight csharp tabtitle="Package Manager" %}
8181

8282
Install-Package Microsoft.Extensions.AI
8383
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -88,7 +88,7 @@ Install-Package Microsoft.Extensions.AI.OpenAI
8888
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
8989

9090
{% tabs %}
91-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
91+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
9292

9393
using Syncfusion.Blazor.AI;
9494
using Microsoft.Extensions.AI;
@@ -115,7 +115,7 @@ Deploy an Azure OpenAI Service resource and model as described in [Microsoft's d
115115
- Install the required NuGet packages:
116116

117117
{% tabs %}
118-
{% highlight C# tabtitle="Package Manager" %}
118+
{% highlight csharp tabtitle="Package Manager" %}
119119

120120
Install-Package Microsoft.Extensions.AI
121121
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -127,7 +127,7 @@ Install-Package Azure.AI.OpenAI
127127
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
128128

129129
{% tabs %}
130-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
130+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
131131

132132
using Syncfusion.Blazor.AI;
133133
using Azure.AI.OpenAI;
@@ -163,7 +163,7 @@ To use Ollama for self-hosted AI models:
163163
- Install the required NuGet packages:
164164

165165
{% tabs %}
166-
{% highlight C# tabtitle="Package Manager" %}
166+
{% highlight csharp tabtitle="Package Manager" %}
167167

168168
Install-Package Microsoft.Extensions.AI
169169
Install-Package OllamaSharp
@@ -174,7 +174,7 @@ Install-Package OllamaSharp
174174
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
175175

176176
{% tabs %}
177-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
177+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
178178

179179
using Syncfusion.Blazor.AI;
180180
using Microsoft.Extensions.AI;
@@ -202,7 +202,7 @@ Add the Syncfusion Blazor service to your **~/Program.cs** file. The configurati
202202
- **WebAssembly or Auto Mode**: Register the service in both the server-side **~/Program.cs** and client-side **~/Program.cs** files.
203203

204204
{% tabs %}
205-
{% highlight C# tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
205+
{% highlight csharp tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
206206

207207
using Syncfusion.Blazor;
208208

@@ -216,7 +216,7 @@ builder.Services.AddSyncfusionBlazor();
216216
var app = builder.Build();
217217

218218
{% endhighlight %}
219-
{% highlight C# tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
219+
{% highlight csharp tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
220220

221221
using Syncfusion.Blazor;
222222

@@ -444,5 +444,4 @@ If the AI service fails to return a valid response, the Kanban will display an e
444444
- **Invalid API Key or Endpoint**: Verify that the `openAIApiKey`, `azureOpenAIKey`, or Ollama `Endpoint` is correct and the service is accessible.
445445
- **Model Unavailable**: Ensure the specified `openAIModel`, `azureOpenAIModel`, or `ModelName` is deployed and supported.
446446
- **Network Issues**: Check connectivity to the AI service endpoint, especially for self-hosted Ollama instances.
447-
- **Large Prompts**: Processing large text inputs may cause timeouts. Consider reducing the prompt size or optimizing the request for efficiency.
448-
447+
- **Large Prompts**: Processing large text inputs may cause timeouts. Consider reducing the prompt size or optimizing the request for efficiency.

blazor/smart-ai-solutions/ai-samples/rich-text-editor/writting-assistance.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ensure the following NuGet packages are installed based on your chosen AI servic
3030
- **OllamaSharp**
3131

3232
{% tabs %}
33-
{% highlight C# tabtitle="Package Manager" %}
33+
{% highlight csharp tabtitle="Package Manager" %}
3434

3535
Install-Package Syncfusion.Blazor.RichTextEditor -Version {{ site.releaseversion }}
3636
Install-Package Syncfusion.Blazor.Themes -Version {{ site.releaseversion }}
@@ -77,7 +77,7 @@ Generate an API key from OpenAI and set `openAIApiKey`. Specify the desired mode
7777
- Install the required NuGet packages:
7878

7979
{% tabs %}
80-
{% highlight C# tabtitle="Package Manager" %}
80+
{% highlight csharp tabtitle="Package Manager" %}
8181

8282
Install-Package Microsoft.Extensions.AI
8383
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -88,7 +88,7 @@ Install-Package Microsoft.Extensions.AI.OpenAI
8888
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
8989

9090
{% tabs %}
91-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
91+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
9292

9393
using Syncfusion.Blazor.AI;
9494
using Microsoft.Extensions.AI;
@@ -115,7 +115,7 @@ Deploy an Azure OpenAI Service resource and model as described in [Microsoft's d
115115
- Install the required NuGet packages:
116116

117117
{% tabs %}
118-
{% highlight C# tabtitle="Package Manager" %}
118+
{% highlight csharp tabtitle="Package Manager" %}
119119

120120
Install-Package Microsoft.Extensions.AI
121121
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -127,7 +127,7 @@ Install-Package Azure.AI.OpenAI
127127
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
128128

129129
{% tabs %}
130-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
130+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
131131

132132
using Syncfusion.Blazor.AI;
133133
using Azure.AI.OpenAI;
@@ -163,7 +163,7 @@ To use Ollama for self-hosted AI models:
163163
- Install the required NuGet packages:
164164

165165
{% tabs %}
166-
{% highlight C# tabtitle="Package Manager" %}
166+
{% highlight csharp tabtitle="Package Manager" %}
167167

168168
Install-Package Microsoft.Extensions.AI
169169
Install-Package OllamaSharp
@@ -174,7 +174,7 @@ Install-Package OllamaSharp
174174
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
175175

176176
{% tabs %}
177-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
177+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
178178

179179
using Syncfusion.Blazor.AI;
180180
using Microsoft.Extensions.AI;
@@ -202,7 +202,7 @@ Add the Syncfusion Blazor service to your **~/Program.cs** file. The configurati
202202
- **WebAssembly or Auto Mode**: Register the service in both the server-side **~/Program.cs** and client-side **~/Program.cs** files.
203203

204204
{% tabs %}
205-
{% highlight C# tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
205+
{% highlight csharp tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
206206

207207
using Syncfusion.Blazor;
208208

@@ -216,7 +216,7 @@ builder.Services.AddSyncfusionBlazor();
216216
var app = builder.Build();
217217

218218
{% endhighlight %}
219-
{% highlight C# tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
219+
{% highlight csharp tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
220220

221221
using Syncfusion.Blazor;
222222

@@ -307,7 +307,7 @@ The dialog is divided into two main rows:
307307
- **Replace:** Inserts the AI-generated content back into the original editor with undo support.
308308

309309
{% tabs %}
310-
{% highlight %}
310+
{% highlight razor %}
311311

312312
<SfDialog @bind-Visible="@dialogVisible" AllowPrerender="true" CssClass="e-rte-elements custom-dialog" ZIndex="1000" ShowCloseIcon="true" IsModal="true" Width="80%" Height="100%" Target="#rteSection">
313313
<DialogTemplates>
@@ -571,7 +571,7 @@ Once the AI-generated content is ready, it needs to be inserted exactly where th
571571
Additionally, users can copy the AI-generated content to the clipboard for use elsewhere. This is handled via a `JavaScript interop` function that copies plain text extracted from the AI result.
572572

573573
{% tabs %}
574-
{% highlight %}
574+
{% highlight razor %}
575575

576576
<FooterTemplate>
577577
<SfButton Disabled="@enabelContentButton" @onclick="CopyContent">Copy</SfButton>

0 commit comments

Comments
 (0)