From 07afddb61b1962ae9a4251af78e32d1e4cbb0ebc Mon Sep 17 00:00:00 2001 From: 01Dri Date: Thu, 4 Sep 2025 10:14:12 -0300 Subject: [PATCH] up --- src/MapperAI.Core/Mappers/PdfMapper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MapperAI.Core/Mappers/PdfMapper.cs b/src/MapperAI.Core/Mappers/PdfMapper.cs index 8fce9fc..8aa1f8f 100644 --- a/src/MapperAI.Core/Mappers/PdfMapper.cs +++ b/src/MapperAI.Core/Mappers/PdfMapper.cs @@ -28,7 +28,7 @@ public PdfMapper(IMapperSerializer serializer, IMapperClientFactory mapperClient var isWeb = IsWebLink(pdfPath); if (isWeb && _httpClient == null) throw new ArgumentException("HttpClient instance is required"); var iai = _mapperClientFactory.CreateClient(_clientConfiguration); - var pdfContent = isWeb ? await ExtractPdfWebContent(pdfPath) : SerializePdfContent(new PdfReader(pdfPath)); + var pdfContent = isWeb ? await ExtractPdfWebContentAsync(pdfPath) : SerializePdfContent(new PdfReader(pdfPath)); var destinyObject = new T(); destinyObject.Initialize(); var prompt = CreatePrompt(pdfContent, _serializer.Serialize(destinyObject)); @@ -58,7 +58,7 @@ Do not include explanations or markdown formatting. } - private async Task ExtractPdfWebContent(string pdfUri) + private async Task ExtractPdfWebContentAsync(string pdfUri) { if (pdfUri.StartsWith("https://drive.google.com") && !pdfUri.Contains("uc?export=download")) pdfUri = ParseDriveUrl(pdfUri);