Skip to content

Conversation

stainless-app[bot]
Copy link
Contributor

@stainless-app stainless-app bot commented Sep 5, 2025

Automated Release PR

0.22.1 (2025-09-05)

Full Changelog: v0.22.0...v0.22.1

Bug Fixes

  • internal: oops had a bad test merge in (#824) (d3a0ae8)
  • use APIStatusError.for instead of APIError.for in stream.rb (#194) (275e19b)
  • use correct error class when raising errors from within streams (271d805)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@stainless-app stainless-app bot requested a review from a team as a code owner September 5, 2025 05:02
The APIError class doesn't have a 'for' class method, but APIStatusError does.
This fixes a NoMethodError that would occur when streaming encounters an error.

test: add test for streaming error handling with APIStatusError.for

This test verifies that streaming error responses properly use
APIStatusError.for instead of the non-existent APIError.for method.
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 605fbca to e0ee725 Compare September 5, 2025 05:43
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from e0ee725 to 1ddf9e8 Compare September 5, 2025 14:07
@stainless-app stainless-app bot merged commit 21313f0 into main Sep 5, 2025
4 checks passed
Copy link
Contributor Author

stainless-app bot commented Sep 5, 2025

🤖 Release is at https://github.com/openai/openai-ruby/releases/tag/v0.22.1 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants