RegRadar / config /settings.py
Abid Ali Awan
Update README with new SDK version 5.34.2, enhance UIHandler to clarify execution time for crawling, and improve regulatory sources in settings.py by adding full names and reordering entries for better clarity.
8159b22
import os
# API Client configurations
TAVILY_API_KEY = os.getenv("TAVILY_API_KEY")
KEYWORDS_API_KEY = os.getenv("KEYWORDS_API_KEY")
MEM0_API_KEY = os.getenv("MEM0_API_KEY")
# OpenAI base URL
OPENAI_BASE_URL = "https://api.keywordsai.co/api/"
# Regulatory websites mapping
REGULATORY_SOURCES = {
"US": {
"SEC": "https://www.sec.gov/news/pressreleases",
"Federal Register": "https://www.federalregister.gov/documents/current",
"Federal Reserve Board": "https://www.federalreserve.gov/newsevents/pressreleases.htm",
"CFTC": "https://www.cftc.gov/PressRoom/PressReleases",
"FDIC": "https://www.fdic.gov/news/press-releases/",
"FINRA": "https://www.finra.org/media-center/newsreleases",
"FDA": "https://www.fda.gov/news-events/fda-newsroom/press-announcements",
"FTC": "https://www.ftc.gov/news-events/news/press-releases",
},
"EU": {
"ESMA": "https://www.esma.europa.eu/press-news/esma-news",
"European Parliament News": "https://www.europarl.europa.eu/news/en/press-room",
"EBA": "https://www.eba.europa.eu/publications-and-media",
"EIOPA": "https://www.eiopa.europa.eu/media/news_en",
"ECB": "https://www.ecb.europa.eu/press/pr/html/index.en.html",
},
"Asia": {
"Japan FSA": "https://www.fsa.go.jp/en/news/",
"Reserve Bank of India (RBI)": "https://www.rbi.org.in/Scripts/BS_PressReleaseDisplay.aspx",
},
"Global": {
"IMF": "https://www.imf.org/en/News",
"World Bank": "https://www.worldbank.org/en/news/all",
"BIS": "https://www.bis.org/press/index.htm",
"OECD": "https://www.oecd.org/newsroom/",
},
}
SOURCE_FULL_NAMES = {
"SEC": "U.S. Securities and Exchange Commission",
"FDA": "U.S. Food and Drug Administration",
"FTC": "Federal Trade Commission",
"Federal Register": "Federal Register",
"CFTC": "Commodity Futures Trading Commission",
"FDIC": "Federal Deposit Insurance Corporation",
"FINRA": "Financial Industry Regulatory Authority",
"Federal Reserve Board": "Federal Reserve Board",
"ESMA": "European Securities and Markets Authority",
"EBA": "European Banking Authority",
"EIOPA": "European Insurance and Occupational Pensions Authority",
"European Parliament News": "European Parliament News",
"ECB": "European Central Bank",
"Japan FSA": "Financial Services Agency of Japan",
"Reserve Bank of India (RBI)": "Reserve Bank of India",
"BIS": "Bank for International Settlements",
"IMF": "International Monetary Fund",
"World Bank": "World Bank",
"OECD": "Organisation for Economic Co-operation and Development",
}
# UI settings
AVATAR_IMAGES = (
None,
"https://media.roboflow.com/spaces/gemini-icon.png",
)
# Default chat parameters
DEFAULT_LLM_TEMPERATURE = 0.3
DEFAULT_LLM_MODEL = "gpt-4.1-mini"