Skip to content

Conversation

@HEPTA-111
Copy link

This PR adds a troubleshooting note to the README.md to address a common API key error.

Problem
When running the scripts, a user might encounter a vague error like 'api_key' has not been loaded even if they have correctly set the GROQ_API_KEY in their .env file.

Cause
The application appears to have two separate checks:

An initial load_env() check that looks for OPENAI_API_KEY.

An invoke_llm() call that (correctly) requires GROQ_API_KEY when using Groq-hosted models.

This conflict causes the script to fail at startup if only the GROQ_API_KEY is present.

Solution
This commit updates the README with a new "Troubleshooting API Keys" section, advising users to add both OPENAI_API_KEY and GROQ_API_KEY to their .env file to satisfy both checks.

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