From ef30a2edd1c5520e33fccd6800fb1419b0cfb72a Mon Sep 17 00:00:00 2001 From: krut_ni Date: Mon, 30 Jun 2025 16:00:32 +0200 Subject: [PATCH] renamed pptx-images dictionary --- app/MindWork AI Studio/Tools/ContentStreamSseHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/MindWork AI Studio/Tools/ContentStreamSseHandler.cs b/app/MindWork AI Studio/Tools/ContentStreamSseHandler.cs index a85b7802..aa8460e7 100644 --- a/app/MindWork AI Studio/Tools/ContentStreamSseHandler.cs +++ b/app/MindWork AI Studio/Tools/ContentStreamSseHandler.cs @@ -5,7 +5,7 @@ namespace AIStudio.Tools; public static class ContentStreamSseHandler { - private static readonly ConcurrentDictionary> PPTX_IMAGES = new(); + private static readonly ConcurrentDictionary> CHUNKED_IMAGES = new(); private static readonly ConcurrentDictionary CURRENT_SLIDE_NUMBERS = new(); public static string ProcessEvent(ContentStreamSseEvent? sseEvent, bool extractImages = true) @@ -89,7 +89,7 @@ public static class ContentStreamSseHandler IsEnd = isEnd, }; - PPTX_IMAGES.AddOrUpdate( + CHUNKED_IMAGES.AddOrUpdate( imageId, _ => [imageSegment], (_, existingList) => @@ -104,7 +104,7 @@ public static class ContentStreamSseHandler private static string BuildImage(string id) { - if (!PPTX_IMAGES.TryGetValue(id, out var imageSegments)) + if (!CHUNKED_IMAGES.TryGetValue(id, out var imageSegments)) return string.Empty; var sortedSegments = imageSegments @@ -115,7 +115,7 @@ public static class ContentStreamSseHandler .Where(item => item.Content != null) .Select(item => item.Content)); - PPTX_IMAGES.Remove(id, out _); + CHUNKED_IMAGES.Remove(id, out _); return base64Image; } } \ No newline at end of file