Skip to content

Conversation

cherbie
Copy link
Contributor

@cherbie cherbie commented May 26, 2025

A common usage pattern for .yaml config files involve referencing OS environment variables. This PR introduces support for this use case.

The current state of the config loader interprets the environment variable reference (e.g ${OPENROUTER_API_KEY}) as the literal string representation "${OPENROUTER_API_KEY}" due to viper's lack of support for this resolution.

This change also increases scope for supporting other API keys better (e.g ${ANTHROPIC_API_KEY}) in the future.

@alvinunreal alvinunreal merged commit ff66a50 into alvinunreal:main May 30, 2025
@alvinunreal
Copy link
Owner

@cherbie merged, thank you

aptdnfapt pushed a commit to aptdnfapt/tmuxai that referenced this pull request Jul 24, 2025
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