From 8fa298487cd622cdb2c74d2b31acdb387fa333db Mon Sep 17 00:00:00 2001 From: HEPTA-111 <63513986+HEPTA-111@users.noreply.github.com> Date: Thu, 23 Oct 2025 13:45:13 +0300 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 446cd55..1155eb8 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,15 @@ rt-agentic-ai-cert-week2/ GROQ_API_KEY=your-groq-key-here GOOGLE_API_KEY=your-google-key-here ``` +### Troubleshooting API Keys + +**Note:** If you encounter persistent API key errors, such as `'api_key' has not been loaded` at startup *or* errors related to `GROQ_API_KEY` during an LLM call, try adding **both** your OpenAI and Groq API keys to your `.env` file. + +The script may have an initial check for `OPENAI_API_KEY` while the LLM call itself requires `GROQ_API_KEY`. + +Your `.env` file should look like this: +OPENAI_API_KEY="sk-your-openai-key-here" +GROQ_API_KEY="gsk_your-groq-key-here" **Get your free API key from:**