Imported from gitkrypton18/TRINETRA-FORENSICS-AI-Bank-Telecom-Analyzer (
.agents/AGENTS.md). Install upstream withnpx skills add gitkrypton18/TRINETRA-FORENSICS-AI-Bank-Telecom-Analyzer --skill .agents. Copyright stays with the author.
Groq API Key Management
Whenever the user says "Add this Groq API key" or provides a new Groq API key to be added to the project, you MUST automatically follow this protocol:
-
Modify
backend/.env:- Append the new key to
backend/.envusing the scalable indexed format:GROQ_API_KEY_{N}=<key>. - Preserve the numbering sequence (e.g., if
GROQ_API_KEY_1is the last one, addGROQ_API_KEY_2).
- Append the new key to
-
Zero Code Changes:
- Do NOT modify any Python source code.
backend/config.pyis already programmed to automatically discover, load, de-duplicate, and rotate any environment variables that start withGROQ_API_KEY. - Ensure it is included in rotation and fallback automatically by the existing engine.
- Verify every Groq integration automatically sees the new key by confirming the
.envwrite was successful.
- Do NOT modify any Python source code.