File size: 966 Bytes
214209a
 
 
 
a2ed37c
214209a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
from pydantic_settings import BaseSettings

class Settings(BaseSettings):
    API_HOST: str = "0.0.0.0"
    API_PORT: int = 7860
    DEBUG: bool = False
    DEVICE: str = "cpu"
    LOAD_DEEPFAKE_MODELS: bool = True
    LOG_LEVEL: str = "INFO"

    # Featherless.ai LLM Settings
    FEATHERLESS_API_KEY: str = ""
    FEATHERLESS_MODEL: str = "meta-llama/Meta-Llama-3.1-8B-Instruct"

    # Twilio Settings
    TWILIO_AUTH_TOKEN: str = "your_twilio_auth_token_here"
    TWILIO_ACCOUNT_SID: str = "your_twilio_account_sid_here"
    TWILIO_PHONE_NUMBER: str = "your_twilio_phone_number_here"
    TWILIO_WHATSAPP_NUMBER: str | None = None
    ALERT_RECIPIENT_NUMBER: str | None = None
    TWILIO_VALIDATE_SIGNATURES: bool = True

    # PhishTank Settings
    PHISHTANK_API_KEY: str | None = None

    # MongoDB Settings
    MONGO_CONNECTION_STRING: str | None = None

    model_config = {
        "env_file": ".env",
        "extra": "ignore"
    }

settings = Settings()