Skip to content

Commit

Permalink
Updated betalgo package
Browse files Browse the repository at this point in the history
  • Loading branch information
jsboige committed Dec 7, 2023
1 parent bb0fcf0 commit 5f44245
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<ItemGroup>
<PackageReference Include="AutoMapper" Version="12.0.1" />
<PackageReference Include="Betalgo.OpenAI.GPT3" Version="6.8.4" />
<PackageReference Include="Betalgo.OpenAI" Version="7.4.2" />
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="ExtendedXmlSerializer" Version="3.7.11" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.1.3" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using OpenAI.GPT3.ObjectModels;
using Spectre.Console;
using Spectre.Console;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
Expand All @@ -8,6 +7,7 @@
using System.Reflection;
using System.Threading.Tasks;
using Argumentum.AssetConverter.DatasetUpdater;
using OpenAI.ObjectModels;

namespace Argumentum.AssetConverter;

Expand All @@ -22,7 +22,7 @@ public class DatasetUpdaterConfig

public string OpenAIKeyPath { get; set; } = @"G:\Mon Drive\MyIA\Argumentum\Fallacies\Gestion\OpenAI-Key.txt";

public string Model { get; set; } = Models.ChatGpt3_5Turbo;
public string Model { get; set; } = Models.Gpt_3_5_Turbo;

public int ChunkSize { get; set; } = 3;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OpenAI.GPT3;
using OpenAI.GPT3.Managers;
using OpenAI.GPT3.ObjectModels;
using OpenAI.GPT3.ObjectModels.RequestModels;
using OpenAI;
using OpenAI.Managers;
using OpenAI.ObjectModels;
using OpenAI.ObjectModels.RequestModels;


namespace Argumentum.AssetConverter;

Expand All @@ -14,7 +15,7 @@ public class Prompt

private OpenAIService openAiService ;

public string Model { get; set; } = Models.ChatGpt3_5Turbo;
public string Model { get; set; } = Models.Gpt_3_5_Turbo;

public string ApiKey { get; set; }

Expand Down Expand Up @@ -42,7 +43,7 @@ public OpenAIService OpenAiService

public async Task<string> Send()
{
Model = Models.ChatGpt3_5Turbo;
Model = Models.Gpt_3_5_Turbo;
var completionResult = await OpenAiService.ChatCompletion.CreateCompletion(new ChatCompletionCreateRequest
{
Messages = new List<ChatMessage>
Expand Down

0 comments on commit 5f44245

Please sign in to comment.