mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:39:48 +00:00
Use the extension method for conversion
This commit is contained in:
parent
a9bf3d5f75
commit
e41b5ffbc8
@ -95,7 +95,7 @@ public readonly record struct DataSourceERI_V1 : IERIDataSource
|
|||||||
Path = eriContext.Path ?? string.Empty,
|
Path = eriContext.Path ?? string.Empty,
|
||||||
Type = eriContext.ToRetrievalContentType(),
|
Type = eriContext.ToRetrievalContentType(),
|
||||||
Links = eriContext.Links,
|
Links = eriContext.Links,
|
||||||
Category = RetrievalContentCategory.TEXT,
|
Category = eriContext.Type.ToRetrievalContentCategory(),
|
||||||
MatchedText = eriContext.MatchedContent,
|
MatchedText = eriContext.MatchedContent,
|
||||||
DataSourceName = eriContext.Name,
|
DataSourceName = eriContext.Name,
|
||||||
SurroundingContent = eriContext.SurroundingContent,
|
SurroundingContent = eriContext.SurroundingContent,
|
||||||
@ -109,7 +109,7 @@ public readonly record struct DataSourceERI_V1 : IERIDataSource
|
|||||||
Type = eriContext.ToRetrievalContentType(),
|
Type = eriContext.ToRetrievalContentType(),
|
||||||
Links = eriContext.Links,
|
Links = eriContext.Links,
|
||||||
Source = eriContext.MatchedContent,
|
Source = eriContext.MatchedContent,
|
||||||
Category = RetrievalContentCategory.IMAGE,
|
Category = eriContext.Type.ToRetrievalContentCategory(),
|
||||||
SourceType = ContentImageSource.BASE64,
|
SourceType = ContentImageSource.BASE64,
|
||||||
DataSourceName = eriContext.Name,
|
DataSourceName = eriContext.Name,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user