From 5b0e3fa3c472217e6c5a67e750b16e6cadc2ef4b Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Fri, 7 Jan 2022 20:35:11 +0000 Subject: [PATCH 1/2] Readme update --- Readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index a3b93094..aa5ebe54 100644 --- a/Readme.md +++ b/Readme.md @@ -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.* @@ -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 \ No newline at end of file +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. \ No newline at end of file From 53d55e1b28873ce3e08123b4dba43c66c66cfee0 Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Fri, 7 Jan 2022 20:42:45 +0000 Subject: [PATCH 2/2] clean up and version bump --- OpenAI.Playground/ApiSettings.json | 3 +-- OpenAI.Playground/Program.cs | 9 ++++----- OpenAI.SDK/OpenAI.GPT3.csproj | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/OpenAI.Playground/ApiSettings.json b/OpenAI.Playground/ApiSettings.json index ea8b9798..d6e17aae 100644 --- a/OpenAI.Playground/ApiSettings.json +++ b/OpenAI.Playground/ApiSettings.json @@ -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/ - - } + } } \ No newline at end of file diff --git a/OpenAI.Playground/Program.cs b/OpenAI.Playground/Program.cs index 552e6879..4c824274 100644 --- a/OpenAI.Playground/Program.cs +++ b/OpenAI.Playground/Program.cs @@ -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() @@ -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(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 diff --git a/OpenAI.SDK/OpenAI.GPT3.csproj b/OpenAI.SDK/OpenAI.GPT3.csproj index 928a2079..ec0658e8 100644 --- a/OpenAI.SDK/OpenAI.GPT3.csproj +++ b/OpenAI.SDK/OpenAI.GPT3.csproj @@ -9,7 +9,7 @@ https://openai.com/ OpenAI-Logo.png true - 0.0.2 + 0.0.3 Tolga Kayhan, Betalgo Betalgo Up Ltd. OpenAI GPT-3 dotnet SDK