diff --git a/src/Infrastructure/BotSharp.Abstraction/Files/IBotSharpFileService.cs b/src/Infrastructure/BotSharp.Abstraction/Files/IBotSharpFileService.cs index 14d22ce2..eaac3b59 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Files/IBotSharpFileService.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Files/IBotSharpFileService.cs @@ -29,7 +29,7 @@ public interface IBotSharpFileService /// /// Pdf files /// - Task AnalyzePdf(string? provider, string? model, string? modelId, string prompt, List files); + Task InstructPdf(string? provider, string? model, string? modelId, string prompt, List files); /// /// Get file bytes and content type from data, e.g., "data:image/png;base64,aaaaaaaaa" diff --git a/src/Infrastructure/BotSharp.Core/Files/Services/BotSharpFileService.Pdf.cs b/src/Infrastructure/BotSharp.Core/Files/Services/BotSharpFileService.Pdf.cs index 4b51a6e6..063b66bb 100644 --- a/src/Infrastructure/BotSharp.Core/Files/Services/BotSharpFileService.Pdf.cs +++ b/src/Infrastructure/BotSharp.Core/Files/Services/BotSharpFileService.Pdf.cs @@ -7,7 +7,7 @@ namespace BotSharp.Core.Files.Services; public partial class BotSharpFileService { - public async Task AnalyzePdf(string? provider, string? model, string? modelId, string prompt, List files) + public async Task InstructPdf(string? provider, string? model, string? modelId, string prompt, List files) { var content = string.Empty; diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs index 532ae7e0..bba6441a 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs @@ -148,7 +148,7 @@ public class InstructModeController : ControllerBase try { var fileService = _services.GetRequiredService(); - var content = await fileService.AnalyzePdf(input.Provider, input.Model, input.ModelId, input.Text, input.Files); + var content = await fileService.InstructPdf(input.Provider, input.Model, input.ModelId, input.Text, input.Files); viewModel.Content = content; return viewModel; }