INNER CODE UNIT · Python

Settings

Li-Evan/Bloom · backend/app/config.py:7

class Settings:
    LLM_API_KEY: str = os.getenv("LLM_API_KEY", "")
    LLM_BASE_URL: str = os.getenv("LLM_BASE_URL", "https://dashscope.aliyuncs.com/compatible-mode/v1")
    LLM_MODEL: str = os.getenv("LLM_MODEL", "qwen-plus")

    DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./bloom.db")

    CORS_ORIGINS: list[str] = [
        o.strip() for o in os.getenv("CORS_ORIGINS", "http://localhost:5173,http://localhost:3000").split(",") if o.strip()
    ]

    TESTING: bool = os.getenv("TESTING", "").lower() in ("1", "true", "yes")


settings = Settings()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…