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

Fix: Raise exception when .env is left unchanged after copying .env.example #128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shinchri
Copy link

@shinchri shinchri commented Mar 6, 2025

Changes:

  • Replace unnecessary f-string from 'llm/models.py' with regular string
  • Check for unchanged value from copying .env.example (see below).

if not api_key into if not api_key or api_key == "your-anthropic-api-key"

@MC-intel
Copy link

MC-intel commented Mar 6, 2025

This is a helpful fix, ensuring users don’t mistakenly run with an unchanged API key. Another approach could be prompting the user to enter their API key during setup if the key is missing or default. That way, it’s caught before execution. What do you think about adding a warning message in the logs as well?

@shinchri
Copy link
Author

shinchri commented Mar 6, 2025

When you say logs, do you mean print messages in the file to actually say API key was left unchanged?

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.

3 participants