Skip to content

Configuration fix#4

Open
Reion19 wants to merge 3 commits intoadd-bedrock-anthropic-supportfrom
configuration-fix
Open

Configuration fix#4
Reion19 wants to merge 3 commits intoadd-bedrock-anthropic-supportfrom
configuration-fix

Conversation

@Reion19
Copy link
Owner

@Reion19 Reion19 commented Jul 10, 2025

##All Submissions:

[ ✅ ] Have you followed the guidelines in our Contributing document?
[ ✅ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[ ✅ ] Have you added an explanation of what your changes do and why you'd like us to include them?


Summary:

There was a bug: when configuring the gem with RubyAI.configure { ... }, it wasn't possible to use the Client class to access the configured models.

Fix
I fixed this by extracting the instance variable initialization into a separate method. This method is called when the @config instance variable is already defined in RubyAI. If not, the initialization proceeds as usual.


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.

1 participant