Releases: alexrudall/ruby-openai
Releases · alexrudall/ruby-openai
v6.2.0
Added
- Add text-to-speech! Thank you @codergeek121
v6.1.0
v6.0.1
Fix
- Gracefully handle the case where an HTTP error response may not have valid JSON in its body. Thank you @atesgoral!
v6.0.0
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
Fix
- Added more spec-compliant SSE parsing: see here https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation
- Fixes issue where OpenAI or an intermediary returns only partial JSON per chunk of streamed data
- Huge thanks to @atesgoral for this important fix!
5.1.0
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
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
toclient.audio.translate
andclient.transcribe
toclient.audio.transcribe
.
4.3.2
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
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
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!