mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 20:01:37 +00:00
Add ContainsImages extension method for List<FileAttachment> to check for image attachments
This commit is contained in:
parent
4c181ea924
commit
447ec9f31a
@ -0,0 +1,6 @@
|
||||
namespace AIStudio.Chat;
|
||||
|
||||
public static class ListFileAttachmentExtensions
|
||||
{
|
||||
public static bool ContainsImages(this List<FileAttachment> attachments) => attachments.Any(attachment => attachment.IsImage);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user