Skip to content

Commit 4e7d9dc

Browse files
Merge pull request #100 from wisedev-code/feat/accept_any_stream_in_files
feat: allow any stream to be used
2 parents 363ddf2 + ea8c9d6 commit 4e7d9dc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/MaIN.Core/.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>MaIN.NET</id>
5-
<version>0.7.1</version>
5+
<version>0.7.2</version>
66
<authors>Wisedev</authors>
77
<owners>Wisedev</owners>
88
<icon>favicon.png</icon>

src/MaIN.Domain/Entities/FileInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ public class FileInfo
55
public required string Name { get; set; }
66
public required string Extension { get; set; }
77
public string? Content { get; set; }
8-
public FileStream? StreamContent { get; set; }
8+
public Stream? StreamContent { get; set; }
99
public string? Path { get; set; }
1010
}

src/MaIN.Services/Dtos/FileInfoDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ public class FileInfoDto
1313
[JsonPropertyName("content")]
1414
public string? Content { get; init; }
1515

16-
public FileStream? StreamContent { get; set; }
16+
public Stream? StreamContent { get; set; }
1717
}

src/MaIN.Services/Services/LLMService/ChatMemoryOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class ChatMemoryOptions
44
{
55
public Dictionary<string, string> TextData { get; set; } = [];
66
public Dictionary<string, string> FilesData { get; set; } = [];
7-
public Dictionary<string, FileStream> StreamData { get; set; } = [];
7+
public Dictionary<string, Stream> StreamData { get; set; } = [];
88
public List<string> WebUrls { get; set; } = [];
99
public List<string>? Memory { get; set; } //Is this obsolete? TBD validate how its really used
1010
public bool PreProcess { get; set; } = false;

src/MaIN.Services/Services/LLMService/Memory/MemoryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private async Task ImportFilesData((IKernelMemory km, ITextEmbeddingGenerator? g
6060
}
6161

6262

63-
private async Task ImportStreamData((IKernelMemory km, ITextEmbeddingGenerator? generator) memory, Dictionary<string, FileStream>? streamData,
63+
private async Task ImportStreamData((IKernelMemory km, ITextEmbeddingGenerator? generator) memory, Dictionary<string, Stream>? streamData,
6464
CancellationToken cancellationToken)
6565
{
6666
if (streamData?.Any() != true)

0 commit comments

Comments
 (0)