Skip to content

Commit

Permalink
Merge pull request #22 from cnblogs/upgrade-dependencies
Browse files Browse the repository at this point in the history
chore: upgrade packages
  • Loading branch information
ikesnowy authored Jul 8, 2024
2 parents 7823d4a + ee301da commit ae525cf
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/KernelMemory.DashScope/DashScopeEmbeddedResource.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Reflection;
using Microsoft.KernelMemory.Configuration;
using Microsoft.KernelMemory;

namespace Cnblogs.KernelMemory.AI.DashScope;

Expand Down
2 changes: 1 addition & 1 deletion src/KernelMemory.DashScope/DashScopeTextGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async IAsyncEnumerable<string> GenerateTextAsync(
{
var parameters = new TextGenerationParameters
{
TopP = options.TopP == 0 ? null : (float)options.TopP,
TopP = options.NucleusSampling == 0 ? null : (float)options.NucleusSampling,
Temperature = options.Temperature == 0 ? null : (float)options.Temperature,
RepetitionPenalty =
options.FrequencyPenalty == 0 ? null : ((float)options.FrequencyPenalty + 1), // dashScope's default value is 1.0, kernel memory is 0.0
Expand Down
5 changes: 3 additions & 2 deletions src/KernelMemory.DashScope/KernelMemory.DashScope.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>cnblogs.com</Authors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>KMEXP00</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.DeepDev.TokenizerLib" Version="1.3.3" />
<PackageReference Include="Microsoft.KernelMemory.Abstractions" Version="0.34.240313.1" />
<PackageReference Include="Cnblogs.DashScope.Core" Version="0.2.0" />
<PackageReference Include="Microsoft.KernelMemory.Abstractions" Version="0.65.240620.1" />
<PackageReference Include="Cnblogs.DashScope.Core" Version="0.2.2" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/SemanticKernel.DashScope/SemanticKernel.DashScope.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App"/>
<PackageReference Include="Cnblogs.DashScope.Core" Version="0.2.0" />
<PackageReference Include="Microsoft.SemanticKernel.Core" Version="1.6.2" />
<PackageReference Include="Cnblogs.DashScope.Core" Version="0.2.2" />
<PackageReference Include="JsonSchema.Net.Generation" Version="4.3.0.2" />
<PackageReference Include="Microsoft.SemanticKernel.Core" Version="1.15.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/KernelMemory.DashScope.UnitTests/Cases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class Cases

public static readonly TextGenerationOptions TextGenerationOptions = new()
{
TopP = 0.8,
NucleusSampling = 0.8,
FrequencyPenalty = 0.1,
MaxTokens = 1000,
PresencePenalty = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.34.240313.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.65.240620.1" />
<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">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<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">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit ae525cf

Please sign in to comment.