openai

OpenAI .NET sdk - ChatGPT, Whisper, GPT-3, GPT-4, Azure OpenAI and DALL-E

MIT License

Stars
2.7K
Committers
48

Bot releases are hidden (Show)

openai - 6.8.6

Published by kayhantolga over 1 year ago

6.8.6

  • Updated Azure OpenAI default API version to the preview version to support ChatGPT. thanks to all issue reporters
  • Added support for an optional chat name field. thanks to @shanepowell
  • Breaking Change
    • FineTuneCreateRequest.PromptLossWeight converto to float thanks to @JohnJ0808

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v6.8.5...v6.8.6

openai - 6.8.5

Published by kayhantolga over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.8.4...v6.8.5

openai - 6.8.3

Published by kayhantolga over 1 year ago

Breaking Changes:
I am going to update library namespace from Betalgo.OpenAI.GPT3 to OpenAI.GPT3. This is the first time I am trying to update my nuget packageId. If something broken, please be patient. I will be fixing it soon. Reverted namespace change, maybe next time.

Small Typo change on model name Model.GPT4 to Model.GPT_4

ServiceCollection.AddOpenAIService(); now returns IHttpClientBuilder which means it allows you to play with httpclient object. Thanks for all the reporters and @LGinC. Here is a little sample

ServiceCollection.AddOpenAIService()
.ConfigurePrimaryHttpMessageHandler((s => new HttpClientHandler
{
    Proxy = new WebProxy("1.1.1.1:1010"),
});
openai - 6.8.1

Published by kayhantolga over 1 year ago

6.8.1

  • Breaking Change: Typo fixed in Content Moderation CategoryScores, changing Sexualminors to SexualMinors. Thanks to @HowToDoThis.
  • Tokenizer changes thanks to @IS4Code.
    • Performance improvement
    • Introduced a new method TokenCount that returns the number of tokens instead of a list.
    • Breaking Change: Removed overridden methods that were basically string conversions.
      I think these methods were not used much and it is fairly easy to do these conversions outside of the method.
      If you disagree, let me know and I can consider adding them back.

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v6.8.0...v6.8.1

openai - 6.8.0

Published by kayhantolga over 1 year ago

6.8.0

  • Added .Net Standart Support, Massive thanks to @pdcruze and @ricaun

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.7.3...v6.8.0

openai - 6.7.3

Published by kayhantolga over 1 year ago

  • Breaking change: ChatMessage.FromAssistance is now ChatMessage.FromAssistant. Thanks to @Swimburger
  • The Tokenizer method has been extended with cleanUpCREOL. You can use this option to clean up Windows-style line endings. Thanks to @gspentzas1991

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.7.2...v6.7.3

openai - 6.7.2

Published by kayhantolga over 1 year ago

Removed Microsoft.AspNet.WebApi.Client dependency
The action build device has been updated to ubuntu due to suspicions that the EOL of the vocab.bpe file had been altered in the last few Windows builds.
Added support for TextEmbeddingAdaV2 Model.

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.7.1...v6.7.2

openai - 6.7.1

Published by kayhantolga over 1 year ago

Introduced support for Whisper.
Grateful thanks to @shanepowell for contributing RetrieveFileContent.
Added support for skip options validation

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.7.0...v6.7.1

openai - 6.7.0

Published by kayhantolga over 1 year ago

I know we are all excited about new Chat Gpt APIs, so I tried to rush this version. It's nearly 4 AM here.
Be aware! It might have some bugs, also the next version may have breaking changes. Because I didn't like namings but I don't have time to think about it at the moment. Whisper is coming soon too.

We have all been waiting for this moment. Please enjoy Chat GPT API
Added support for Chat GPT API
Fixed Tokenizer Bug, it was not working properly.

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.8...v6.7.0

openai - 6.6.8

Published by kayhantolga over 1 year ago

Breaking Changes

Renamed Engine keyword to Model in accordance with OpenAI's new naming convention.
Deprecated DefaultEngineId in favor of DefaultModelId.
DefaultEngineId and DefaultModelId is not static anymore.
Added support for Azure OpenAI, a big thanks to @copypastedeveloper!

Added support for Tokenizer, inspired by @dluc's https://github.com/dluc/openai-tools repository. Please consider giving the repo a star.

These two changes are recent additions, so please let me know if you encounter any issues.

Updated documentation links from beta.openai.com to platform.openai.com.

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.7...v6.6.8

openai - 6.6.7

Published by kayhantolga over 1 year ago

Added Cancellation Token support, thanks to @robertlyson
Updated readme file, thanks to @qbm5, @gotmike, @SteveMCarroll

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.6...v6.6.7

openai - 6.6.6

Published by kayhantolga over 1 year ago

CreateCompletionAsStream is now available, big thanks to @qbm5

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.5...v6.6.6

openai - 6.6.5

Published by kayhantolga over 1 year ago

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.4...v6.6.5

  • Sad news, we have Breaking Changes.
    • SetDefaultEngineId() replaced by SetDefaultModelId()
    • RetrieveModel(modelId) will not use the default Model anymore. You have to pass modelId as a parameter.
    • I implemented Model overwrite logic.
      • If you pass a modelId as a parameter it will overwrite the Default Model Id and object modelId
      • If you pass your modelId in your object it will overwrite the Default Model Id
      • If you don't pass any modelId it will use Default Model Id
      • If you didn't set a Default Model Id, SDK will throw a null argument exception
        • Parameter Model Id > Object Model Id > Default Model Id
        • If you find this complicated please have a look at the implementation, OpenAI.SDK/Extensions/ModelExtension.cs -> ProcessModelId()
  • New Method introduced: GetDefaultModelId();
  • Some name changes about the legacy engine keyword with the new model keyword
  • Started to use the latest Completion endpoint. This expecting to solve finetuning issues. Thanks to @maiemy and other reporters.
openai - v6.6.4

Published by kayhantolga almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.3...v6.6.4

openai - 6.6.3

Published by kayhantolga almost 2 years ago

Bug-fix, now we are handling logprops response properly, thanks to @KosmonikOS
Code clean-up, thanks to @KosmonikOS

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v6.6.2...v6.6.3

openai - V6.6.2

Published by kayhantolga almost 2 years ago

  • Bug-fix, added jsonignore for stop and stopAsList, thanks to @Patapum
openai - 6.1.0

Published by kayhantolga almost 2 years ago

  • 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.
openai - 6.2.0

Published by kayhantolga almost 2 years ago

openai - 6.3.0

Published by kayhantolga almost 2 years ago

  • 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
openai - 6.4.0

Published by kayhantolga almost 2 years ago

  • 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.
Package Rankings
Top 6.75% on Proxy.golang.org
Badges
Extracted from project README's
Discord Static Badge Betalgo.OpenAI Betalgo.OpenAI.Utilities Static Badge Static Badge
Related Projects