File size: 531 Bytes
c8b1fd7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from pydantic_settings import BaseSettings, SettingsConfigDict



class Settings(BaseSettings):
    SARVAM_API_KEY: str
    # Google Fact Check API
    GOOGLE_FACTCHECK_API_KEY: str

    # Tavily API
    TAVILY_API_KEY: str

    # FastAPI Secret Key (optional)
    SECRET_KEY: str = "truthlens"

    # Debug Mode
    DEBUG: bool = False

    # Tell Pydantic where the .env file is
    model_config = SettingsConfigDict(
        env_file=".env",
        extra="ignore"
    )


# Create a global settings object
settings = Settings()