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 - v8.3.0 Latest Release

Published by kayhantolga 5 months ago

8.3.0

  • Updated Assistant tests, added sample for CreateMessageWithImage
  • Azure Assistant endpoints are updated since documentation reference still earlier version (Assistant v1). I am not sure if Azure supports all Assistant v2 features. So, feedback is much appreciated.
  • Fixed error handling and response parsing for audio transcription result in text mode.
  • Fixed Culture issue for number conversions (Audio Temperature and Image N)
  • Removed file_ids from Create Assistant
  • Added Support for Chat LogProbs
  • Fixed File_Id Typo in file VisionImageUrl
  • Updated File purpose enum list

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v8.2.2...v8.3.0

openai - v8.2.2

Published by kayhantolga 5 months ago

8.2.2

  • Assistant (Beta) feature is now available in the main package. Be aware there might still be bugs due to the beta status of the feature and the SDK itself. Please report any issues you encounter.
  • Use "UseBeta": true in your config file or serviceCollection.AddOpenAIService(r => r.UseBeta = true); or new OpenAiOptions { UseBeta = true } in your service registration to enable Assistant features.
  • Expect more frequent breaking changes around the assistant API due to its beta nature.
  • All Assistant endpoints are implemented except for streaming functionality, which will be added soon.
  • The Playground has samples for every endpoint usage, but lacks a complete implementation for the Assistant APIs. Refer to Assistants overview - OpenAI API for more details.
  • Special thanks to all contributors for making this version possible!

Other Changes:

  • Fixed a bug with multiple tools calling in stream mode.
  • Added error handling for streaming.
  • Added usage information for streaming (use StreamOptions = new(){IncludeUsage = true,} to get usage information).
  • Added timestamp_granularities[] for Create transcription to provide the timestamp of every word.

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v8.1.1...v8.2.2

openai - 8.1.1

Published by kayhantolga 6 months ago

8.1.1

  • Fixed incorrect mapping for batch API error response.

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v8.1.0...v8.1.1

openai - v8.1.0

Published by kayhantolga 6 months ago

8.1.0

  • Added support for Batch API

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v8.0.1...v8.1.0

openai - 8.0.1

Published by kayhantolga 6 months ago

8.0.1

  • Added support for new Models gpt-4-turbo and gpt-4-turbo-2024-04-09 thanks to @ChaseIngersol

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v8.0.0...v8.0.1

openai - 8.0.0

Published by kayhantolga 6 months ago

8.0.0

  • Added support for .NET 8.0 thanks to @BroMarduk
  • Utilities library updated to work with only .NET 8.0

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.7...v8.0.0

openai - v7.4.7

Published by kayhantolga 6 months ago

7.4.7

  • Fixed a bug that Vision API could not be used with Azure OpenAI, Thanks to @yt3trees
  • Fixed a bug that was blocking CreateCompletionAsStream on some platforms. #331
  • Fixed a bug that was causing an error with multiple tool calls, now we are handling index parameter #493, thanks to @David-Buyer

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.6...v7.4.7

openai - v7.4.6

Published by kayhantolga 8 months ago

7.4.6

  • Fixed again🥲 incorrect Model Naming - moderation models and ada embedding 2 model

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.5...v7.4.6

openai - v7.4.5

Published by kayhantolga 8 months ago

  • Fixed function calling streaming bugs thanks to @David-Buyer @dogdie233 @gavi @Maracaipe611
  • Breaking Change:
    While streaming (CreateCompletionAsStream), there were some unexpected incoming data chunks like :pings or :events, etc. @gavi discovered this issue. We are now ignoring these chunks. If you were using it, you need to set justDataMode to false.

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.4...v7.4.5

openai - 7.4.4

Published by kayhantolga 9 months ago

7.4.4

  • Added support for new models : TextEmbeddingV3Small, TextEmbeddingV3Large, Gpt_3_5_Turbo_0125, Gpt_4_0125_preview, Gpt_4_turbo_preview, Text_moderation_007, Text_moderation_latest, Text_moderation_stable
  • Added optinal dimension and encoding for embedding thanks to @shanepowell

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.0.4...v7.4.4

openai - v7.4.3

Published by kayhantolga 10 months ago

7.4.3

  • Fixed the response format of AudioCreateSpeechRequest.
  • Updated Azure OpenAI version to 2023-12-01-preview, which now supports dall-e 3.
  • Added the ability to retrieve header values from the base response, such as ratelimit, etc. Please note that this feature is experimental and may change in the future.
  • Semi-Breaking change:
    • The SDK will now attempt to handle 500 errors and other similar errors from the OpenAI server. Previously, an exception was thrown in such cases. Now, the SDK will try to read the response and return it as an error message. This change provides more visibility to developers and helps them understand the cause of the error.

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.2...v7.4.3

openai - 7.4.2

Published by kayhantolga 11 months ago

  • Let's start with breaking changes:
    • OpenAI has replaced function calling with tools. We have made the necessary changes to our code. This is not a major change; now you just have a wrapper around your function calling, which is named as "tool". The Playground provides an example. Please take a look to see how you can update your code.
      This update was completed by @shanepowell. Many thanks to him.
  • Now we support the Vision API, which involves passing message contents to the existing chat method. It is quite easy to use, but documentation was not available in the OpenAI API documentation.
    This feature was completed by @belaszalontai. Many thanks to them.

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.1...v7.4.2

openai - 7.4.1

Published by kayhantolga 11 months ago

7.4.1

  • Added support for "Create Speech" thanks to @belaszalontai / @szabe74

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.4.0...v7.4.1

openai - 7.4.0

Published by kayhantolga 11 months ago

Version 7.4.0

  • Added support for Dall-e 3, thanks to @belaszalontai and @szabe74
  • Added support for GPT-4-Turbo/Vision thanks to @ChaseIngersol
  • Models are updated with the latest.
  • Fixed typo, thanks to @eltociear

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.3.1...v7.4.0

openai - 7.3.1

Published by kayhantolga 11 months ago

Version 7.3.1

  • Reverting a breking change which will be also Breaking Changes(only for 7.3.0):
    • Reverting the usage of EnsureStatusCode() which caused the loss of error information. Initially, I thought it would help in implementing HTTP retry tools, but now I believe it is a bad idea for two reasons.
      1. You can't simply retry if the request wasn't successful because it could fail for various reasons. For example, you might have used too many tokens in your request, causing OpenAI to reject the response, or you might have tried to use a nonexistent model. It would be better to use the Error object in your retry rules. All responses are already derived from this base object.
      2. We will lose error response data.

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.3.0...v7.3.1

openai - 7.3.0

Published by kayhantolga almost 1 year ago

  • Updated Moderation categories as reported by @dmki.
  • Breaking Changes:
    • Introduced the use of EnsureStatusCode() after making requests.Please adjust your code accordingly for handling failure cases. Thanks to @miroljub1995 for reporting.
    • Previously, we used to override paths in the base domain, but this behavior has now changed. If you were using abc.com/mypath as the base domain, we used to ignore /mypath. This will no longer be the case, and the code will now respect /mypath. Thanks to @Hzw576816 for reporting.

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.2.0...v7.3.0

openai - v7.2.0

Published by kayhantolga about 1 year ago

Added Chatgpt Finetununig support thanks to @aghimir3
Default Azure Openai version increased thanks to @mac8005
Fixed Azure Openai Audio endpoint thanks to @mac8005

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.1.5...v7.2.0

openai - v7.1.5

Published by kayhantolga about 1 year ago

Added error handling for PlatformNotSupportedException in PostAsStreamAsync when using HttpClient.Send, now falls back to SendRequestPreNet6 for compatibility on platforms like MAUI, Mac. Thanks to @Almis90
We now have a function caller describe method that automatically generates function descriptions. This method is available in the utilities library. Thanks to @vbandi

What's Changed

Full Changelog: https://github.com/betalgo/openai/compare/v7.0.3...v7.1.5

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.1.3...v7.1.4

openai - v7.1.3

Published by kayhantolga about 1 year ago

7.1.3

  • This release was a bit late and took longer than expected due to a couple of reasons. The future was quite big, and I couldn't cover all possibilities. However, I believe I have covered most of the function definitions (with some details missing). Additionally, I added an option to build it manually. If you don't know what I mean, you don't need to worry. I plan to cover the rest of the function definition in the next release. Until then, you can discover this by playing in the playground or in the source code. This version also support using other libraries to export your function definition.
  • We now have support for functions! Big cheers to @rzubek for completing most of this feature.
  • Additionally, we have made bug fixes and improvements. Thanks to @choshinyoung, @yt3trees, @WeihanLi, @N0ker, and all the bug reporters. (Apologies if I missed any names. Please let me know if I missed your name and you have a commit.)

7.1.2-beta

7.1.0-beta

  • Function Calling: We're releasing this version to bring in a new feature that lets you call functions faster. But remember, this version might not be perfectly stable and we might change it a lot later. A big shout-out to @rzubek for helping us add this feature. Although I liked his work, I didn't have enough time to look into it thoroughly. Still, the tests I did showed it was working, so I decided to add his feature to our code. This lets everyone use it now. Even though I'm busy moving houses and didn't have much time, seeing @rzubek's help made things a lot easier for me.
  • Support for New Models: This update also includes support for new models that OpenAI recently launched. I've also changed the naming style to match OpenAI's. Model names will no longer start with 'chat'; instead, they'll start with 'gpt_3_5' and so on.

What's Changed

New Contributors

Full Changelog: https://github.com/betalgo/openai/compare/v7.0.0...v7.1.3

openai - v7.0.0

Published by kayhantolga over 1 year ago

7.0.0

  • The code now supports .NET 7.0. Big cheers to @BroMarduk for making this happen.
  • The library now automatically disposes of the Httpclient when it's created by the constructor. This feature is thanks to @BroMarduk.
  • New support has been added for using more than one instance at the same time. Check out this link for more details. Thanks to @remixtedi for bringing this to my attention.
  • A lot of small improvements have been done by @BroMarduk.
  • Breaking Changes 😢
    • I've removed 'GPT3' from the namespace, so you might need to modify some aspects of your project. But don't worry, it's pretty simple! For instance, instead of writing using OpenAI.GPT3.Interfaces, you'll now write using OpenAI.Interfaces.
    • The order of the OpenAI constructor parameters has changed. It now takes 'options' first, then 'httpclient'.
      //Before
      var openAiService = new OpenAIService(httpClient, options);
      //Now
      var openAiService = new OpenAIService(options, httpClient);
      

What's Changed

New Contributors

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

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