Skip to content

fix: replace hardcoded API keys with os.getenv() across examples#1041

Open
mattcarrollcode wants to merge 1 commit into
meta-llama:mainfrom
mattcarrollcode:fix/hardcoded-api-keys
Open

fix: replace hardcoded API keys with os.getenv() across examples#1041
mattcarrollcode wants to merge 1 commit into
meta-llama:mainfrom
mattcarrollcode:fix/hardcoded-api-keys

Conversation

@mattcarrollcode
Copy link
Copy Markdown

Summary

Replace hardcoded credential placeholders with os.getenv() / os.environ.get() in:

  • research_paper_analyzer/research_analyzer.py (Together API)
  • customerservice_chatbots/messenger_chatbot/llama_messenger.py (Replicate, page token)
  • customerservice_chatbots/whatsapp_chatbot/llama_chatbot.py (WhatsApp, Replicate, phone)
  • Contextual-Chunking-RAG/config.py (LlamaParse, DeepInfra)
  • blog_generator/setup_qdrant_collection.py (Qdrant)

Motivation

Inline credential placeholders encourage users to paste real keys into source code, risking accidental commits to public forks.

Test plan

  • All modified files pass python3 -c "import ast; ast.parse(...)"
  • No hardcoded API key strings remain in modified files

Hardcoded credential placeholders in source code encourage users to
paste real keys inline, risking accidental commits. Use os.getenv()
or os.environ.get() consistently instead.
@meta-cla meta-cla Bot added the cla signed label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant