From 19cc1de84b42bd55d339915462c9728fe363ece1 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 29 Dec 2025 17:32:31 +0100 Subject: [PATCH] Improved prompting for attached images --- app/MindWork AI Studio/Chat/ContentText.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/MindWork AI Studio/Chat/ContentText.cs b/app/MindWork AI Studio/Chat/ContentText.cs index b0a67f79..3a9b8f9d 100644 --- a/app/MindWork AI Studio/Chat/ContentText.cs +++ b/app/MindWork AI Studio/Chat/ContentText.cs @@ -195,6 +195,14 @@ public sealed class ContentText : IContent sb.AppendLine(await Program.RUST_SERVICE.ReadArbitraryFileData(document.FilePath, int.MaxValue)); sb.AppendLine("````"); } + + var numImages = this.FileAttachments.Count(x => x is { IsImage: true, Exists: true }); + if (numImages > 0) + { + sb.AppendLine(); + sb.AppendLine($"Additionally, there are {numImages} image file(s) attached to this message. "); + sb.AppendLine("Please consider them as part of the message content and use them to answer accordingly."); + } } } }