Skip to content

Commit

Permalink
clean up and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Jan 7, 2022
1 parent 5b0e3fa commit 53d55e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions OpenAI.Playground/ApiSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
},
"LaserCatEyesOptions": {
//"AppKey":"Put your app key to here or to User Secret file" //How can I get an app key? visit here: https://portal.lasercateyes.com/

}
}
}
9 changes: 4 additions & 5 deletions OpenAI.Playground/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
using LaserCatEyes.HttpClientListener;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using OpenAI.GPT3;
using OpenAI.GPT3.Extensions;
using OpenAI.GPT3.Interfaces;
using OpenAI.GPT3.Managers;
using OpenAI.GPT3.Models;
using OpenAI.Playground.TestHelpers;

var builder = new ConfigurationBuilder()
Expand All @@ -20,9 +17,11 @@

// Laser cat eyes will help us to track request and responses between OpenAI server and our client
//It is in Beta version, if you have consider about your data privacy or if you don't want to use it just comment out from here
serviceCollection.Configure<LaserCatEyesOptions>(configuration.GetSection("LaserCatEyesOptions"));

//get your app key from https://lasercateyes.com and put it under ApiSettings.json or secrets.json
serviceCollection.AddLaserCatEyesHttpClientListener();
serviceCollection.AddOpenAIService(settings => { settings.ApiKey = "TEST"; });
serviceCollection.AddOpenAIService();
//serviceCollection.AddOpenAIService(settings => { settings.ApiKey = "TEST"; });


//// to here, and uncomment from here
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/OpenAI.GPT3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageProjectUrl>https://openai.com/</PackageProjectUrl>
<PackageIcon>OpenAI-Logo.png</PackageIcon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.2</Version>
<Version>0.0.3</Version>
<Authors>Tolga Kayhan, Betalgo</Authors>
<Company>Betalgo Up Ltd.</Company>
<Product>OpenAI GPT-3 dotnet SDK</Product>
Expand Down

0 comments on commit 53d55e1

Please sign in to comment.