Ruby Openai Versions Save

OpenAI API + Ruby! 🤖❤️ Now with GPT4o 🚀🚀🚀

v7.0.1

2 weeks ago

Fixed

  • Update to v2 of Assistants in Messages, Runs, RunSteps and Threads - thanks to @willywg and others for pointing this out.

v7.0.0

3 weeks ago

Added

  • Add support for Batches, thanks to @simonx1 for the PR!
  • Allow use of local LLMs like Ollama! Thanks to @ThomasSevestre
  • Update to v2 of the Assistants beta & add documentation on streaming from an Assistant.
  • Add Assistants endpoint to create and run a thread in one go, thank you @quocphien90
  • Add missing parameters (order, limit, etc) to Runs, RunSteps and Messages - thanks to @shalecraig and @coezbek
  • Add missing Messages#list spec - thanks @adammeghji
  • Add Messages#modify to README - thanks to @nas887
  • Don't add the api_version (/v1/) to base_uris that already include it - thanks to @kaiwren for raising this issue
  • Allow passing a StringIO to Files#upload - thanks again to @simonx1
  • Add Ruby 3.3 to CI

Security

  • [BREAKING] ruby-openai will no longer log out API errors by default - you can reenable by passing log_errors: true to your client. This will help to prevent leaking secrets to logs. Thanks to @lalunamel for this PR.

Removed

  • [BREAKING] Remove deprecated edits endpoint.

Fixed

  • Fix README DALL·E 3 error - thanks to @clayton
  • Fix README tool_calls error and add missing tool_choice info - thanks to @Jbrito6492

v6.5.0

1 month ago

Added

  • Add back the deprecated Completions endpoint that I removed a bit prematurely. Thanks, [@mishranant](https://github.com/ mishranant) and everyone who requested this.

v6.4.0

1 month ago

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

5 months ago

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

5 months ago

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

6 months ago

Added

v6.1.0

6 months ago

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

6 months ago

Fix

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

v6.0.0

6 months ago

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.