Skip to content

Commit

Permalink
Merge pull request #4 from betalgo/dev
Browse files Browse the repository at this point in the history
Readme update
  • Loading branch information
kayhantolga authored Jan 7, 2022
2 parents 30d0370 + 53d55e1 commit 23ee2ee
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 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
10 changes: 8 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Dotnet SDK for OpenAI GTP-3 (Unofficial)
# Dotnet SDK for OpenAI GTP-3 *(Unofficial)*

[![Betalgo.OpenAI.GPT3](https://img.shields.io/nuget/v/Betalgo.OpenAI.GPT3?style=for-the-badge)](https://www.nuget.org/packages/Betalgo.OpenAI.GPT3/)

```
Install-Package Betalgo.OpenAI.GPT3
```

*I was building an SDK for myself then I decide to share it, I hope it will be useful for you. I haven't maintained any open source projects before. Any help would be much appreciated. I am open to suggestions If you would like to contribute somehow.*

Expand Down Expand Up @@ -72,4 +78,4 @@ else


Notes:
I couldn't find enough time to test all the methods or improve the documenations. My main target was make fine-tunig avalibale. If you hit any issue please report it or pull request always appricater it
I couldn't find enough time to test all the methods or improve the documentation. My main target was to make fine-tuning available. If you hit any issue please report it or pull request always appreciated.

0 comments on commit 23ee2ee

Please sign in to comment.