Skip to content

fix: updated auth for openai #57

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

panbanda
Copy link

Was getting the following error:

...gems/openai-0.4.1/lib/openai/client.rb:105:in `initialize': unknown keywords: :access_token, :log_errors (ArgumentError)

The openai gem (specifically the official supported by openai gem "openai", "~> 0.4.1") uses api_key now and doesn't have that log_errors option. This PR reflects that change.

@gando001
Copy link

gando001 commented Jun 6, 2025

I've just started using ActiveAgent after trying a few different approaches and have hit this issue. Thank you for this gem BTW

It would be great to get this released so we can use the newer versions of the OpenAI gem

@TonsOfFun
Copy link
Contributor

Thanks for the PR, I'll make sure this gets into the release coming out with the brand new docs!

@TonsOfFun
Copy link
Contributor

OK back to this PR after a busy month...

Curious what the compatibility of this change is for people using the community ruby-openai gem from Alex Rudall vs the new official openai-ruby gem from OpenAI.

I myself, as well as my clients and a few earlier adopters that I know of, have not used the new OpenAI official ruby gem so I'd be curious if you have thoughts on preserving compatibility for those who still use the community gem.

@gando001
Copy link

When I initially commented, I was using the OpenAI gem since then I've moved to ruby-openai so no longer an issue for me

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

Successfully merging this pull request may close these issues.

3 participants