Skip to content

Commit 1302ef1

Browse files
authored
Merge pull request #661 from betalgo/dev
8.8.0 Betalgo.Ranul.OpenAI
2 parents 71c94d4 + 469e64a commit 1302ef1

File tree

211 files changed

+588
-581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+588
-581
lines changed

.github/workflows/BuildAndDeployBetalgoOpenAI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build And Deploy Betalgo.OpenAI
1+
name: Build And Deploy Betalgo.Ranul.OpenAI
22

33
on:
44
push:
@@ -28,7 +28,7 @@ jobs:
2828
id: publish_nuget_OpenAI
2929
uses: alirezanet/[email protected]
3030
with:
31-
PROJECT_FILE_PATH: OpenAI.SDK\OpenAI.csproj
31+
PROJECT_FILE_PATH: OpenAI.SDK\Betalgo.Ranul.OpenAI.csproj
3232
NUGET_KEY: ${{secrets.NUGET_KEY}}
3333
INCLUDE_SYMBOLS: true
34-
PACKAGE_NAME: Betalgo.OpenAI
34+
PACKAGE_NAME: Betalgo.Ranul.OpenAI

.github/workflows/BuildAndDeployBetalgoOpenAIUtilities.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
id: publish_nuget_OpenAI
3232
uses: alirezanet/[email protected]
3333
with:
34-
PROJECT_FILE_PATH: OpenAI.Utilities\OpenAI.Utilities.csproj
34+
PROJECT_FILE_PATH: OpenAI.Utilities\Betalgo.OpenAI.Utilities.csproj
3535
NUGET_KEY: ${{secrets.NUGET_KEY}}
3636
INCLUDE_SYMBOLS: true
3737
PACKAGE_NAME: Betalgo.OpenAI.Utilities

OpenAI.Playground/ExtensionsAndHelpers/ConsoleExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OpenAI.ObjectModels.ResponseModels;
1+
using Betalgo.Ranul.OpenAI.ObjectModels.ResponseModels;
22

33
namespace OpenAI.Playground.ExtensionsAndHelpers;
44

OpenAI.Playground/OpenAI.Playground.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="LaserCatEyes.HttpClientListener" Version="8.0.0" />
25+
<PackageReference Include="LaserCatEyes.HttpClientListener" Version="8.0.1" />
2626
</ItemGroup>
2727

2828
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
2929
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
30-
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
31-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
30+
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
31+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
3232
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
3333
</ItemGroup>
3434

@@ -48,11 +48,11 @@
4848

4949
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
5050
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
51-
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
51+
<PackageReference Include="System.Net.Http.Json" Version="8.0.1" />
5252
</ItemGroup>
5353

5454
<ItemGroup>
55-
<ProjectReference Include="..\OpenAI.SDK\OpenAI.csproj" />
55+
<ProjectReference Include="..\OpenAI.SDK\Betalgo.Ranul.OpenAI.csproj" />
5656
</ItemGroup>
5757

5858
<ItemGroup>

OpenAI.Playground/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using LaserCatEyes.HttpClientListener;
1+
using Betalgo.Ranul.OpenAI.Extensions;
2+
using Betalgo.Ranul.OpenAI.Interfaces;
3+
using LaserCatEyes.HttpClientListener;
24
using Microsoft.Extensions.Configuration;
35
using Microsoft.Extensions.DependencyInjection;
4-
using OpenAI.Extensions;
5-
using OpenAI.Interfaces;
66
using OpenAI.Playground.TestHelpers;
77

88
var builder = new ConfigurationBuilder().AddJsonFile("ApiSettings.json").AddUserSecrets<Program>();

OpenAI.Playground/TestHelpers/AssistantHelpers/AssistantTestHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using OpenAI.Interfaces;
2-
using OpenAI.ObjectModels;
3-
using OpenAI.ObjectModels.RequestModels;
4-
using OpenAI.ObjectModels.SharedModels;
1+
using Betalgo.Ranul.OpenAI.Interfaces;
2+
using Betalgo.Ranul.OpenAI.ObjectModels;
3+
using Betalgo.Ranul.OpenAI.ObjectModels.RequestModels;
4+
using Betalgo.Ranul.OpenAI.ObjectModels.SharedModels;
55
using OpenAI.Playground.ExtensionsAndHelpers;
66

77
namespace OpenAI.Playground.TestHelpers.AssistantHelpers;

OpenAI.Playground/TestHelpers/AssistantHelpers/AssistantTestHelper3.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System.Text;
2-
using OpenAI.Builders;
3-
using OpenAI.Interfaces;
4-
using OpenAI.ObjectModels;
5-
using OpenAI.ObjectModels.RequestModels;
6-
using OpenAI.ObjectModels.SharedModels;
2+
using Betalgo.Ranul.OpenAI.Builders;
3+
using Betalgo.Ranul.OpenAI.Interfaces;
4+
using Betalgo.Ranul.OpenAI.ObjectModels;
5+
using Betalgo.Ranul.OpenAI.ObjectModels.RequestModels;
6+
using Betalgo.Ranul.OpenAI.ObjectModels.SharedModels;
77
using OpenAI.Playground.ExtensionsAndHelpers;
88

99
namespace OpenAI.Playground.TestHelpers.AssistantHelpers;

OpenAI.Playground/TestHelpers/AssistantHelpers/MessagesTestHelper.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
using OpenAI.Interfaces;
2-
using OpenAI.ObjectModels;
3-
using OpenAI.ObjectModels.RequestModels;
4-
using OpenAI.ObjectModels.SharedModels;
1+
using Betalgo.Ranul.OpenAI.Interfaces;
2+
using Betalgo.Ranul.OpenAI.ObjectModels;
3+
using Betalgo.Ranul.OpenAI.ObjectModels.RequestModels;
4+
using Betalgo.Ranul.OpenAI.ObjectModels.SharedModels;
55
using OpenAI.Playground.ExtensionsAndHelpers;
6-
using static OpenAI.ObjectModels.StaticValues;
76

87
namespace OpenAI.Playground.TestHelpers.AssistantHelpers;
98

@@ -43,7 +42,7 @@ public static async Task CreateMessage(IOpenAIService openAI)
4342
}
4443

4544
CreatedThreadId = thread.Id;
46-
var result = await openAI.Beta.Messages.CreateMessage(CreatedThreadId, new(AssistantsStatics.MessageStatics.Roles.User, new("How does AI work? Explain it in simple terms.")));
45+
var result = await openAI.Beta.Messages.CreateMessage(CreatedThreadId, new(StaticValues.AssistantsStatics.MessageStatics.Roles.User, new("How does AI work? Explain it in simple terms.")));
4746
if (result.Successful)
4847
{
4948
CreatedMessageId = result.Id;
@@ -89,12 +88,12 @@ public static async Task CreateMessageWithImage(IOpenAIService openAI)
8988

9089
MessageContentOneOfType content = new([
9190
MessageContent.TextContent(prompt),
92-
MessageContent.ImageFileContent(uploadFileId, ImageStatics.ImageDetailTypes.High)
91+
MessageContent.ImageFileContent(uploadFileId, StaticValues.ImageStatics.ImageDetailTypes.High)
9392
]);
9493

9594
MessageCreateRequest request = new()
9695
{
97-
Role = AssistantsStatics.MessageStatics.Roles.User,
96+
Role = StaticValues.AssistantsStatics.MessageStatics.Roles.User,
9897
Content = content
9998
};
10099

OpenAI.Playground/TestHelpers/AssistantHelpers/RunTestHelper.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using OpenAI.Interfaces;
2-
using OpenAI.ObjectModels;
3-
using OpenAI.ObjectModels.RequestModels;
4-
using OpenAI.ObjectModels.ResponseModels;
5-
using OpenAI.ObjectModels.SharedModels;
1+
using Betalgo.Ranul.OpenAI.Interfaces;
2+
using Betalgo.Ranul.OpenAI.ObjectModels;
3+
using Betalgo.Ranul.OpenAI.ObjectModels.RequestModels;
4+
using Betalgo.Ranul.OpenAI.ObjectModels.ResponseModels;
5+
using Betalgo.Ranul.OpenAI.ObjectModels.SharedModels;
66
using OpenAI.Playground.ExtensionsAndHelpers;
77

88
namespace OpenAI.Playground.TestHelpers.AssistantHelpers;

OpenAI.Playground/TestHelpers/AssistantHelpers/RunTestHelper2.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using OpenAI.Builders;
2-
using OpenAI.Interfaces;
3-
using OpenAI.ObjectModels;
4-
using OpenAI.ObjectModels.RequestModels;
5-
using OpenAI.ObjectModels.SharedModels;
1+
using Betalgo.Ranul.OpenAI.Builders;
2+
using Betalgo.Ranul.OpenAI.Interfaces;
3+
using Betalgo.Ranul.OpenAI.ObjectModels;
4+
using Betalgo.Ranul.OpenAI.ObjectModels.RequestModels;
5+
using Betalgo.Ranul.OpenAI.ObjectModels.SharedModels;
66
using OpenAI.Playground.ExtensionsAndHelpers;
77

88
namespace OpenAI.Playground.TestHelpers.AssistantHelpers;

0 commit comments

Comments
 (0)