chat / app /core /config.py
ariansyahdedy's picture
Add Gemnini Flash
07fbc67
raw
history blame
671 Bytes
# app/core/config.py
import os
from pydantic_settings import BaseSettings
# from dotenv import load_dotenv
# load_dotenv()
class Settings(BaseSettings):
MONGO_DETAILS: str = os.getenv("mongodb_uri")
MongoDB_NAME: str = "llm_wa_hf"
COLLECTION_NAMES: list = ["users", "transactions"]
ACCESS_TOKEN:str = os.getenv("ACCESS_TOKEN")
API_URL: str = os.getenv("API_URL")
MEDIA_UPLOAD_URL: str = os.getenv("MEDIA_UPLOAD_URL")
SECRET_KEY: str = os.getenv("SECRET_KEY")
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 100
settings = Settings()
print(f"SECRET_KEY: {settings.SECRET_KEY}") # Add this line to verify the SECRET_KEY