From 30a15adb409a40497e2c59accd0eed5ff056ae93 Mon Sep 17 00:00:00 2001
From: Jicheng Lu <103353@smsassist.com>
Date: Mon, 1 Jul 2024 14:38:07 -0500
Subject: [PATCH] rename method
---
.../BotSharp.Abstraction/Files/IBotSharpFileService.cs | 2 +-
.../BotSharp.Core/Files/Services/BotSharpFileService.Pdf.cs | 2 +-
.../BotSharp.OpenAPI/Controllers/InstructModeController.cs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
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;
}