Skip to content

Commit

Permalink
Update to SK 1.15.1 (#1047)
Browse files Browse the repository at this point in the history
### Motivation and Context
New NuGet packages are available and should be used to get the latest
bug fixes.

### Description
Getting latest versions of NuGet packages and make slight code
adaptations to keep it functional.

### Contribution Checklist
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
  • Loading branch information
glahaye authored Jul 11, 2024
1 parent ffac70b commit 33d2eba
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions integration-tests/ChatCopilotIntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions memorypipeline/CopilotChatMemoryPipeline.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.62.240605.1" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.14.1" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.66.240709.1" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.15.1" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions shared/CopilotChatShared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.62.240605.1" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Postgres" Version="0.62.240605.1" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Redis" Version="0.62.240605.1" />
<PackageReference Include="Microsoft.KernelMemory.Orchestration.RabbitMQ" Version="0.62.240605.1" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.66.240709.1" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Postgres" Version="0.66.240709.1" />
<PackageReference Include="Microsoft.KernelMemory.MemoryDb.Redis" Version="0.66.240709.1" />
<PackageReference Include="Microsoft.KernelMemory.Orchestration.RabbitMQ" Version="0.66.240709.1" />
<PackageReference Include="Tesseract" Version="5.2.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion tools/importdocument/ImportDocument.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
Expand Down
6 changes: 3 additions & 3 deletions webapi/CopilotChatWebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.41.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.20.0" />
<PackageReference Include="Microsoft.KernelMemory.Abstractions" Version="0.62.240605.1" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.14.1" />
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.14.1" />
<PackageReference Include="Microsoft.KernelMemory.Abstractions" Version="0.66.240709.1" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.15.1" />
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.15.1" />
<PackageReference Include="Microsoft.SemanticKernel.Connectors.AzureAISearch" Version="1.5.0-alpha" />
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.5.0-alpha" />
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Core" Version="1.5.0-alpha" />
Expand Down
6 changes: 3 additions & 3 deletions webapi/Extensions/ISemanticMemoryClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ await memoryClient.SearchAsync(
null,
relevanceThreshold, // minRelevance param
resultCount,
cancellationToken);
cancellationToken: cancellationToken);

return searchResult;
}
Expand All @@ -128,7 +128,7 @@ public static async Task StoreDocumentAsync(
uploadRequest.Tags.Add(MemoryTags.TagChatId, chatId);
uploadRequest.Tags.Add(MemoryTags.TagMemory, memoryName);

await memoryClient.ImportDocumentAsync(uploadRequest, cancellationToken);
await memoryClient.ImportDocumentAsync(uploadRequest, cancellationToken: cancellationToken);
}

public static Task StoreMemoryAsync(
Expand Down Expand Up @@ -173,7 +173,7 @@ public static async Task StoreMemoryAsync(
uploadRequest.Tags.Add(MemoryTags.TagChatId, chatId);
uploadRequest.Tags.Add(MemoryTags.TagMemory, memoryName);

await memoryClient.ImportDocumentAsync(uploadRequest, cancellationToken);
await memoryClient.ImportDocumentAsync(uploadRequest, cancellationToken: cancellationToken);
}

public static async Task RemoveChatMemoriesAsync(
Expand Down

0 comments on commit 33d2eba

Please sign in to comment.