Skip to content

Commit

Permalink
version 6.5 DALL-E Support
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Nov 4, 2022
1 parent 166ba67 commit 58973df
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 35 deletions.
8 changes: 4 additions & 4 deletions OpenAI.SDK/OpenAI.GPT3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<PackageProjectUrl>https://openai.com/</PackageProjectUrl>
<PackageIcon>OpenAI-Logo.png</PackageIcon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>6.4.1</Version>
<Version>6.5.0</Version>
<Authors>Tolga Kayhan, Betalgo</Authors>
<Company>Betalgo Up Ltd.</Company>
<Product>OpenAI GPT-3 dotnet SDK</Product>
<Description>Dotnet SDK for OpenAI GTP-3 (Unofficial) </Description>
<Product>OpenAI GPT-3 and DALL·E dotnet SDK</Product>
<Description>Dotnet SDK for OpenAI GTP-3 and DALL·E</Description>
<RepositoryUrl>https://github.com/betalgo/openai/</RepositoryUrl>
<PackageTags>openAI,gpt-3,ai,betalgo,NLP</PackageTags>
<PackageTags>openAI,gpt-3,ai,betalgo,NLP, dalle, DALL·E </PackageTags>
<PackageId>Betalgo.$(AssemblyName)</PackageId>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
Expand Down
70 changes: 39 additions & 31 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Dotnet SDK for OpenAI GTP-3
# Dotnet SDK for OpenAI GTP-3 and DALL·E

[![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
```
For changelogs please go to end of the document.

Unofficial - Dotnet SDK for OpenAI GTP-3.
GPT-3 doesn't have any official .Net SDK.
Dotnet SDK for OpenAI GTP-3 and DALL·E </br>
*Unofficial*. </br>
*GPT-3 doesn't have any official .Net SDK.*

## Features
- [x] Image (DALL·E)
- [x] Models
- [x] Completions
- [ ] Edit
Expand All @@ -20,17 +21,12 @@ GPT-3 doesn't have any official .Net SDK.
- [x] Fine-tunes
- [x] Moderation


*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.*

I will be using the latest libraries all the time. Also, next releasing will include breaking changes frequently *(as I mentioned before I was building the SDK for myself. Unfortunately I do not have time to plan these changes and support lower version apps)*. So please be aware of that before starting to use the library.

As you can guess I do not accept any damage caused by use of the library. You are always free to use other libraries or OpenAI Web-API.
For changelogs please go to end of the document.

Visit https://openai.com/ to get your API key. Also documentation with more detail is avaliable there.

## Sample Usages
#### ***!! I would strongly suggest to use different account than your main account while you use playground.<br> Test methods could add or delete your files and models !!***
### ***!! I would strongly suggest to use different account than your main account while you use playground.<br> Test methods could add or delete your files and models !!***

The repository includes one sample project already **"OpenAI.Playground"** You can check playground project to see how I was testing it while I was developing the library. Be carefull while playing with it. Some test methods will delete your files or fine tunings. <br>

Expand Down Expand Up @@ -101,30 +97,42 @@ else
```


Notes:
## Notes:
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.

*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.*

I will be using the latest libraries all the time. Also, next releasing will include breaking changes frequently *(as I mentioned before I was building the SDK for myself. Unfortunately I do not have time to plan these changes and support lower version apps)*. So please be aware of that before starting to use the library.

As you can guess I do not accept any damage caused by use of the library. You are always free to use other libraries or OpenAI Web-API.



## Changelog
### 6.1.0
* Organization id is not a required value anymore, Thanks to @samuelnygaard
* Removed deprecated Engine Endpoint and replaced it with Models Endpoint. Now Model response have more fields.
* Regarding OpenAI Engine naming, I had to rename Engine Enum and static fields. They are quite similar but you have to replace them with new ones. Please use Models class instead of Engine class.
* To support fast engine name changing I have created a new Method, `Models.ModelNameBuilder()` you may consider using it.
### 6.2.0
* Removed deprecated Answers, Classifications, and Search endpoints https://community.openai.com/t/answers-classification-search-endpoint-deprecation/18532. They will be still avaliable until December at web-API. If you still need them please do not update to this version.
* Code clean-up
### 6.5.0
* OpenAI made a surprise release yesterday and they have announced DALL·E API. I needed to do other things but I couldn't resist. Because I was rushing, some methods and class names may will change in the next release. Until that day, enjoy your creative AI.
* **This library now fully support all DALL·E features**.
* I tried to complete Edit API too bu unfortunately something was wrong with the documentation, I need to ask some questions in the community forum.
### 6.4.1
* Bug-fixes
* FineTuneCreateRequest suffix json property name changed "Suffix" to "suffix"
* CompletionCreateRequest user json property name changed "User" to "user" (Thanks to @shaneqld), also now it is a nullable string
### 6.4.0
* I have good news and bad news
* Moderation feature implementation is done. Now we support Moderation.
* Updated some request and response models to catch up with changes in OpenAI API
* New version has some breaking changes. Because we are in the fall season I needed to do some cleanup. Sorry for breaking changes but most of them are just renaming. I believe they can be solved before your coffee finish.
* I am hoping to support Edit Feature in the next version.
### 6.3.0
* Thanks to @c-d and @sarilouis for contributions on this version.
* Thanks to @c-d and @sarilouis for their contributions to this version.
* Now we support Embedding endpoint. Thanks to @sarilouis
* Bug fixes and updates for Models
* Code clean-up
### 6.4.0
* I have good news and bad news
* Moderation feature implemenation is done. Now we support Moderation.
* Updated some request and response models to catch up with changes in OpenAI api
* New version has some breaking chnanges. Because we are in the fall season I needed to do some cleanup. Sorry for breaking changes but most of them are just renaming. I believe they can be solved before your coffee finish.
* I am hoping to support Edit Feature in next version.
### 6.4.1
* Bug-fixes
* FineTuneCreateRequest suffix json propert name changed "Suffix" to "suffix"
* CompletionCreateRequest user json propert name changed "User" to "user" (Thanks to @shaneqld), also now it is nullable string
### 6.2.0
* Removed deprecated Answers, Classifications, and Search endpoints https://community.openai.com/t/answers-classification-search-endpoint-deprecation/18532. They will be still available until December at web-API. If you still need them please do not update to this version.
* Code clean-up
### 6.1.0
* Organization id is not a required value anymore, Thanks to @samuelnygaard
* Removed deprecated Engine Endpoint and replaced it with Models Endpoint. Now Model response has more fields.
* Regarding OpenAI Engine naming, I had to rename Engine Enum and static fields. They are quite similar but you have to replace them with new ones. Please use Models class instead of Engine class.
* To support fast engine name changing I have created a new Method, `Models.ModelNameBuilder()` you may consider using it.

0 comments on commit 58973df

Please sign in to comment.