# Reddit API credentials REDDIT_CLIENT_ID=your_reddit_client_id REDDIT_CLIENT_SECRET=your_reddit_client_secret REDDIT_USER_AGENT=your_reddit_user_agent # MongoDB connection MONGODB_URI=mongodb://localhost:27017 MONGODB_DATABASE=reddit_trends # LLM Provider Settings # Supported providers: 'groq', 'openrouter' (default: openrouter) LLM_PROVIDER=openrouter # Groq API Configuration (only needed if using Groq) GROQ_API_KEY=your_groq_api_key GROQ_MODEL=llama-3.3-70b-versatile # OpenRouter API Configuration (only needed if using OpenRouter) OPENROUTER_API_KEY=your_openrouter_api_key OPENROUTER_MODEL=deepseek/deepseek-r1-distill-llama-70b:free # LLM General Settings (optional, applies to all providers) LLM_TEMPERATURE=0.5 LLM_MAX_TOKENS=8192 # Reddit Data Collection Configuration # Comment fetching strategy (costs API calls): # - "true": Always fetch comments for all posts # - "false": Never fetch comments # - "smart": Auto-detect - fetch only for posts with little/no text content (RECOMMENDED) FETCH_COMMENTS=smart TOP_COMMENTS_LIMIT=5 # Minimum selftext length (chars) to skip comments in smart mode MIN_SELFTEXT_LENGTH=100 # Image Analysis (costs API calls to vision models via OpenRouter) ANALYZE_IMAGES=true # Primary vision model to use IMAGE_ANALYSIS_MODEL=qwen/qwen2.5-vl-72b-instruct:free # Fallback models (comma-separated) - OpenRouter will auto-retry if primary fails IMAGE_ANALYSIS_FALLBACK_MODELS=google/gemini-2.0-flash-exp:free,mistralai/mistral-small-3.2-24b-instruct:free,mistralai/mistral-small-3.1-24b-instruct:free,meta-llama/llama-4-maverick:free IMAGE_ANALYSIS_MAX_TOKENS=500 # YouTube Transcript Analysis (costs API calls to LLM) YOUTUBE_ANALYSIS_ENABLED=true YOUTUBE_ANALYSIS_MODEL=deepseek/deepseek-chat-v3.1:free YOUTUBE_ANALYSIS_MAX_TOKENS=500 # Web Content Analysis (costs API calls to Firecrawl and LLM) WEB_CONTENT_ANALYSIS_ENABLED=true FIRECRAWL_API_KEY=your_firecrawl_api_key WEB_CONTENT_ANALYSIS_MODEL=deepseek/deepseek-chat-v3.1:free WEB_CONTENT_ANALYSIS_MAX_TOKENS=500 # Posts per subreddit to fetch POSTS_PER_SUBREDDIT=30 # Subreddits to monitor (comma-separated) REDDIT_SUBREDDITS=LocalLLaMA,MachineLearning,singularity,LocalLLM,hackernews,LangChain,LLMDevs,Vectordatabase,Rag,ai_agents,datascience # # Report generation settings # REPORT_GENERATION_TIME=06:00 # REPORT_LANGUAGES=en,zh # # GitHub Integration (Optional) # GITHUB_TOKEN=your_github_token # GITHUB_REPO=your_github_repo # GITHUB_USERNAME=your_github_username # # Report Configuration # EXCLUDED_CATEGORIES=ENERGY