Skip to content

Commit

Permalink
chore: update Betalgo.OpenAI package (.net7 support)
Browse files Browse the repository at this point in the history
  • Loading branch information
phmatray committed Jul 13, 2023
1 parent ec87be2 commit 8502426
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/SalesPitch/Commands/SalesPitchCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using OpenAI.GPT3.Interfaces;
using OpenAI.GPT3.ObjectModels;
using OpenAI.GPT3.ObjectModels.RequestModels;
using OpenAI.GPT3.ObjectModels.ResponseModels;
using OpenAI.Interfaces;
using OpenAI.ObjectModels;
using OpenAI.ObjectModels.RequestModels;
using OpenAI.ObjectModels.ResponseModels;
using SalesPitch.Extensions;
using SalesPitch.Services.Language;
using Spectre.Console;
Expand Down Expand Up @@ -99,7 +99,7 @@ public override async Task<int> ExecuteAsync(
// Send the request and process the response
IAsyncEnumerable<ChatCompletionCreateResponse> completionResult =
_openAIService.ChatCompletion
.CreateCompletionAsStream(request, Models.ChatGpt3_5Turbo);
.CreateCompletionAsStream(request, Models.Gpt_4);

await foreach (ChatCompletionCreateResponse completion in completionResult)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OpenAI.GPT3.ObjectModels.ResponseModels;
using OpenAI.ObjectModels.ResponseModels;

namespace SalesPitch.Extensions;

Expand Down
2 changes: 1 addition & 1 deletion src/SalesPitch/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using OpenAI.Extensions;
using Spectre.Console.Cli;
using OpenAI.GPT3.Extensions;
using SalesPitch.Commands;
using SalesPitch.Services.Language;

Expand Down
2 changes: 1 addition & 1 deletion src/SalesPitch/SalesPitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Betalgo.OpenAI" Version="6.8.6" />
<PackageReference Include="Betalgo.OpenAI" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
Expand Down

0 comments on commit 8502426

Please sign in to comment.