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

Add note about reading OPENAI_KEY and OPENAI_API_KEY variables #214

Closed
wants to merge 1 commit into from
Closed

Add note about reading OPENAI_KEY and OPENAI_API_KEY variables #214

wants to merge 1 commit into from

Conversation

WiegerWolf
Copy link
Contributor

Today I've spent good 30 min trying to figure out why my configured OPENAI_KEY from ~/.aicommits was not being used. It turned out env vars OPENAI_KEY and OPENAI_API_KEY take priority over config file. This is second time this happened to me, and each time I had to go and read the code.

While this behaviour is more or less fine, I'd like to add this note to README explaining this behaviour to users.

@WiegerWolf
Copy link
Contributor Author

tests fail with:

process.env.OPENAI_KEY is necessary to run these tests. Skipping...

and even tough it says "Skipping...", in the end the run fails with:

944ms
14 passed

 ELIFECYCLE  Test failed. See above for more details.
Error: Process completed with exit code 1.

I'm not sure how to proceed, but the pipeline failing has nothing to do with the changes in this PR.

@WiegerWolf WiegerWolf closed this Mar 13, 2024
@WiegerWolf WiegerWolf deleted the readme-env-read-note branch March 13, 2024 07:44
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