apix/services/crawl4ai/app/config.py
Khoa.vo 2a4bf8b58b
Some checks are pending
CI / build (18.x) (push) Waiting to run
CI / build (20.x) (push) Waiting to run
feat: updates before deployment
2026-01-06 13:26:11 +07:00

21 lines
561 B
Python

"""
Configuration settings for Meta AI service.
Uses environment variables with sensible defaults.
"""
import os
class Settings:
"""Configuration settings loaded from environment variables"""
# Rate limiting
rate_limit_delay: float = float(os.getenv("META_RATE_LIMIT_DELAY", "30"))
max_requests_per_hour: int = int(os.getenv("META_MAX_REQUESTS_HOUR", "30"))
# Meta AI URLs (used by our wrapper)
meta_ai_base: str = "https://www.meta.ai"
graphql_endpoint: str = "https://www.meta.ai/api/graphql/"
settings = Settings()