chore(openai): upgrade dependencies

This commit is contained in:
Fu Diwei
2022-02-05 19:08:24 +08:00
parent b9512a863e
commit 64c0bf5bd8
4 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="JWT" Version="8.8.1" />
<PackageReference Include="JWT" Version="8.9.0" />
<PackageReference Include="SKIT.FlurlHttpClient.Common" Version="2.2.0" />
</ItemGroup>

View File

@@ -6,7 +6,7 @@ using Newtonsoft.Json;
namespace SKIT.FlurlHttpClient.Wechat.OpenAI.Utilities
{
internal static class JWTUtility
internal static class JwtUtility
{
private static readonly Lazy<IJwtEncoder> _encoder = new Lazy<IJwtEncoder>(() =>
{

View File

@@ -139,7 +139,7 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI
{
if (data is WechatOpenAIPlatformRequest.Serialization.IEncryptedUrlEncoded)
{
string jwt = Utilities.JWTUtility.EncodeWithHS256(payload: data, secret: Credentials.EncodingAESKey!);
string jwt = Utilities.JwtUtility.EncodeWithHS256(payload: data, secret: Credentials.EncodingAESKey!);
data = new { query = jwt };
}