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

.env.local doesn't read openai key #52

Open
pompa opened this issue Jan 6, 2025 · 3 comments
Open

.env.local doesn't read openai key #52

pompa opened this issue Jan 6, 2025 · 3 comments

Comments

@pompa
Copy link

pompa commented Jan 6, 2025

Steps to reproduce

  • Add OPENAI_API_KEY in .env.local
  • Run bunx languine translate

Expected

  • Runs the translation job without prompting me about the key.

Actual

  • The command prompts me about supplying a key.

Note:
I've made sure the key works by supplying it in the command line inline. This works.

Additional:
When asked, add to .env.local, it adds the key (even if the key is already defined). Doing this still doesn't read the key properly, but it ensures that .env.local is accessible at least. :)

@pontusab
Copy link
Contributor

pontusab commented Jan 6, 2025

Thanks for reporting, we support .env but I will add support for .env.local too!

@pompa
Copy link
Author

pompa commented Jan 6, 2025

It does write to .env.local though. :)

@pontusab
Copy link
Contributor

pontusab commented Jan 6, 2025

ooooh

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

No branches or pull requests

2 participants