Skip to content

Releases: alexrudall/ruby-openai

v6.4.0

27 Mar 20:44
81c3988
Compare
Choose a tag to compare

Added

Fixed

  • Update README and spec to use tool calls instead of functions - thanks to @mpallenjr
  • Remove nonexistent Thread#list method - thanks again! to @ignacio-chiazzo
  • Update finetunes docs in README to use chat instead of completions endpoint - thanks to @blefev

v6.3.1

04 Dec 16:34
26672af
Compare
Choose a tag to compare

Fixed

  • Allow any kind of file (eg. PDFs) to be uploaded to the API, not just JSONL files. Thank you @stefan-kp for the PR!

v6.3.0

26 Nov 18:22
80da193
Compare
Choose a tag to compare

Added

  • Add ability to pass Faraday middleware to the client in a block, eg. to enable verbose logging - shout out to @obie for pushing for this.
  • Add better error logging to the client by default.
  • Bump Event Source to v1, thank you @atesgoral @ Shopify!

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.