Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning on Ruby 3.4 #558

Open
MatheusRich opened this issue Jan 14, 2025 · 0 comments
Open

Deprecation warning on Ruby 3.4 #558

MatheusRich opened this issue Jan 14, 2025 · 0 comments

Comments

@MatheusRich
Copy link

MatheusRich commented Jan 14, 2025

Describe the bug
When running this gem with RUby 3.4 I get the following warning:

/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/ruby-openai-7.3.1/lib/openai/compatibility.rb:1: warning: ::Ruby is reserved for Ruby 3.5

To Reproduce

  1. Install the gem with RUby 3.4
  2. Enable warnings with Warning[:deprecated] = true
  3. Run any code

Expected behavior
No warnings.

Desktop (please complete the following information):

  • OS: MacOS
  • Version 15.2

I believe we'll need to remove the compatibility module to support 3.5 eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant