From e41b5ffbc8aaf0c4adf6466038db89425d2b8a19 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 18 Feb 2025 13:13:51 +0100 Subject: [PATCH] Use the extension method for conversion --- app/MindWork AI Studio/Settings/DataModel/DataSourceERI_V1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Settings/DataModel/DataSourceERI_V1.cs b/app/MindWork AI Studio/Settings/DataModel/DataSourceERI_V1.cs index b591de00..a9e40231 100644 --- a/app/MindWork AI Studio/Settings/DataModel/DataSourceERI_V1.cs +++ b/app/MindWork AI Studio/Settings/DataModel/DataSourceERI_V1.cs @@ -95,7 +95,7 @@ public readonly record struct DataSourceERI_V1 : IERIDataSource Path = eriContext.Path ?? string.Empty, Type = eriContext.ToRetrievalContentType(), Links = eriContext.Links, - Category = RetrievalContentCategory.TEXT, + Category = eriContext.Type.ToRetrievalContentCategory(), MatchedText = eriContext.MatchedContent, DataSourceName = eriContext.Name, SurroundingContent = eriContext.SurroundingContent, @@ -109,7 +109,7 @@ public readonly record struct DataSourceERI_V1 : IERIDataSource Type = eriContext.ToRetrievalContentType(), Links = eriContext.Links, Source = eriContext.MatchedContent, - Category = RetrievalContentCategory.IMAGE, + Category = eriContext.Type.ToRetrievalContentCategory(), SourceType = ContentImageSource.BASE64, DataSourceName = eriContext.Name, });