Skip to content

Commit cdfc3bf

Browse files
981280: Need to update the Blazor FileManager component AI samples.
1 parent a97783a commit cdfc3bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

blazor/SyncfusionAISamples/Components/Pages/FileManager/SmartFileManager.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@using Syncfusion.Blazor.Spinner;
2121
@using Syncfusion.Blazor.Buttons;
2222
@inject FileManagerService FileManagerService
23-
@inject AzureAIService openAIService
23+
@inject AzureAIService AzureAIService
2424
@inject NavigationManager NavigationManager
2525

2626
<title>Syncfusion - AI Opeartions with FileManager</title>

blazor/SyncfusionAISamples/Components/Pages/FileManager/SmartFileManager.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public async Task SummarizeAsync(bool isFile, string type, string filterPath, st
301301
string promptQuery = "You are a helpful assistant. Your task is to analyze the provided text and generate a short summary. Provide the summary with highlighted topics in ordered list HTML format and it should be ready for execution :\n\n Do not provide codeblock prefixes or introductory texts such as ``` or html, etc.";
302302
string query = promptQuery + fileContent;
303303

304-
string finalSummary = await openAIService.GetCompletionAsync(query, false);
304+
string finalSummary = await AzureAIService.GetCompletionAsync(query, false);
305305

306306
this.DialogContent = !string.IsNullOrEmpty(finalSummary) ? finalSummary : "Please provide a proper file content to summarize.";
307307
this.isContentGenerating = false;

0 commit comments

Comments
 (0)