Spaces:
Sleeping
Sleeping
Download backend/config.py from ashutoshneemval/CLAT_Guide: direct link, hf CLI and curl.
- Browser
- Download file 954 Bytes
-
https://huggingface.co/spaces/ashutoshneemval/CLAT_Guide/resolve/main/backend/config.py
- Command line
-
hf download hf://spaces/ashutoshneemval/CLAT_Guide/backend/config.py
-
curl -L -o config.py https://huggingface.co/spaces/ashutoshneemval/CLAT_Guide/resolve/main/backend/config.py
954 Bytes
| import os | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| # App Settings | |
| APP_NAME: str = "LexAI Engine" | |
| DEBUG: bool = False | |
| # Database | |
| DATABASE_URL: str = "postgresql://postgres:postgres@localhost:5432/lexai" | |
| # JWT Settings | |
| JWT_SECRET_KEY: str = "309b4a1b025e14fb1e687b1c1e05d0fa85145b34005b8a0df5f0bbbe85a109a9" | |
| JWT_ALGORITHM: str = "HS256" | |
| ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440 # 24 hours | |
| # NVIDIA AI API Settings | |
| NVIDIA_API_KEY: str = "" | |
| NVIDIA_API_URL: str = "https://integrate.api.nvidia.com/v1" | |
| NVIDIA_MODEL: str = "nvidia/nemotron-3-super-120b-a12b" | |
| # ChromaDB Settings | |
| CHROMA_PATH: str = "data/chroma" | |
| EMBEDDING_MODEL_NAME: str = "all-MiniLM-L6-v2" | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| extra="ignore" | |
| ) | |
| settings = Settings() | |