Skip to content

Commit 79adcb3

Browse files
author
Piotr Stachaczynski
committed
feat: document processing
1 parent 9610550 commit 79adcb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.3</version>
5+
<version>0.7.4</version>
66
<authors>Wisedev</authors>
77
<owners>Wisedev</owners>
88
<icon>favicon.png</icon>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static async Task<string[]> ConvertToFilesContent(ChatMemoryOptions optio
4242
foreach (var sData in options.StreamData)
4343
{
4444
var path = Path.GetTempPath() + $".{sData.Key}";
45-
var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write);
45+
await using var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write);
4646
await sData.Value.CopyToAsync(fileStream);
4747
files.Add(path);
4848
}

0 commit comments

Comments
 (0)