Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme update #4

Merged
merged 2 commits into from
Jan 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.