New
v8.0.0
Added
- Add Responses endpoints - thanks to my excellent colleague @simonx1 for your work on this!
- Add docs for the Deepseek chat API.
- Add Models#delete - thanks to bennysghost.
Fixed
- [BREAKING] Try to JSON parse everything. If it fails, fall back gracefully to returning the raw response. Thank you to @gregszero and the many others who raised this issue.
- [BREAKING] An unknown file type will no longer prevent file upload, but instead raise a warning.
- [BREAKING] ruby-openai longer requires "faraday/multipart" for Faraday 1 users (Faraday 1 already includes it and it was causing a warning). Thanks to ajGingrich for raising this!
- Add
user_dataandevalsas options for known File types - thank you to jontec for this fix! - Fix a syntax ambiguity in Client.rb - thank you to viralpraxis.
Removed
- [BREAKING] Backwards compatibility for
require "ruby/openai"is removed - from v8 on you MUST userequire "openai". This fixes a deprecation warning with Ruby 3.4. Thanks to @ndemianc for this PR. - [BREAKING] Removed support for Ruby 2.6. ruby-openai may still work with this version but it's no longer supported.
- Removed the 'OpenAI-Beta' header from Batches API requests.