Skip to content

Conversation

@sirwolfgang
Copy link
Contributor

While attempting to get this gem working locally in my project I ran into an issue where prompt#inspect would error because I am not setting Rails.application.credentials.dig(:openai, :api_key) because I am not using OpenAI and that path within the credentials store.

This patch fixes that issue, while also ensuring that any credentials loaded via the config, not just ones that happen to also be loaded via the same path in Rails.credentials are correctly sanitized from logs and VCR.

Copy link
Contributor

@TonsOfFun TonsOfFun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff, I had a WIP for something like this, but I appreciate your approach here. I'll merge this and refactor my changes later.

@TonsOfFun TonsOfFun merged commit 548bfef into activeagents:main Aug 6, 2025
2 of 4 checks passed
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.

2 participants