File size: 675 Bytes
8b425b2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # config.py
# --- LIMITS ---
# Maximum number of topics allowed in one run
MAX_TOPICS = 20
# Maximum number of articles to process per search (Search & Clean phase)
MAX_NEWS_PER_TOPIC = 500
# Maximum number of articles to send to GPT (Extraction phase) to save money
#MAX_ARTICLES_TO_LLM = 10000
# Number of articles to process in one LLM call
#LLM_BATCH_SIZE = 15
#SERPER_RESULTS_PER_PAGE = 20
# --- API DEFAULTS ---
DEFAULT_DAYS_BACK = 7
DEFAULT_COUNTRY = "us"
# "Reporter" plan limits https://worldnewsapi.com/pricing/
WORLD_NEWS_REQUESTS_PER_SECOND = 2.0
WORLD_NEWS_MAX_CONCURRENT_REQUESTS = 5
#Google settings
COMPANY_CACHE_SHEET_NAME = "company_info_cache"
|