Skip to content

Releases: alexrudall/ruby-openai

v6.2.0

15 Nov 10:29
0836dd8
Compare
Choose a tag to compare

Added

v6.1.0

14 Nov 22:15
Compare
Choose a tag to compare

Added

  • Add support for Assistants, Threads, Messages and Runs. Thank you @Haegin for the excellent work on this PR, and many reviewers for their contributions!

v6.0.1

07 Nov 17:37
1ec0bb8
Compare
Choose a tag to compare

Fix

  • Gracefully handle the case where an HTTP error response may not have valid JSON in its body. Thank you @atesgoral!

v6.0.0

06 Nov 01:28
d16dc4b
Compare
Choose a tag to compare

Added

  • [BREAKING] HTTP errors will now be raised by ruby-openai as Faraday:Errors, including when streaming! Implemented by @atesgoral
  • [BREAKING] Switch from legacy Finetunes to the new Fine-tune-jobs endpoints. Implemented by @lancecarlson
  • [BREAKING] Remove deprecated Completions endpoints - use Chat instead.

Fix

  • [BREAKING] Fix issue where :stream parameters where replaced by a boolean in the client application. Thanks to @martinjaimem, @vickymadrid03 and @nicastelo for spotting and fixing this issue.

v5.2.0

01 Nov 17:15
aa103fc
Compare
Choose a tag to compare

Fix

5.1.0

22 Aug 09:49
7103348
Compare
Choose a tag to compare

Added

  • Added rough_token_count to estimate tokens in a string according to OpenAI's "rules of thumb". Thank you to @jamiemccarthy for the idea and implementation!

5.0.0

14 Aug 22:19
5ff5952
Compare
Choose a tag to compare

Added

  • Support multi-tenant use of the gem! Each client now holds its own config, so you can create unlimited clients in the same project, for example to Azure and OpenAI, or for different headers, access keys, etc.
  • [BREAKING-ish] This change should only break your usage of ruby-openai if you are directly calling class methods like OpenAI::Client.get for some reason, as they are now instance methods. Normal usage of the gem should be unaffected, just you can make new clients and they'll keep their own config if you want, overriding the global config.
  • Huge thanks to @petergoldstein for his original work on this, @cthulhu for testing and many others for reviews and suggestions.

Changed

  • [BREAKING] Move audio related method to Audio model from Client model. You will need to update your code to handle this change, changing client.translate to client.audio.translate and client.transcribe to client.audio.transcribe.

4.3.2

14 Aug 14:48
fd56e43
Compare
Choose a tag to compare

Fixed

  • Don't overwrite config extra-headers when making a client without different ones. Thanks to @swistaczek for raising this!
  • Include extra-headers for Azure requests.

4.3.1

13 Aug 21:38
c252969
Compare
Choose a tag to compare

Fixed

  • Tempfiles can now be sent to the API as well as Files, eg for Whisper. Thanks to @codergeek121 for the fix!

4.3.0

12 Aug 19:20
ffb7f31
Compare
Choose a tag to compare

Added

  • Add extra-headers to config to allow setting openai-caching-proxy-worker TTL, Helicone Auth and anything else ya need. Ty to @deltaguita and @marckohlbrugge for the PR!