Add initial project structure with configuration, utilities, and API endpoints
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# config/settings.py
|
||||
from pydantic_settings import BaseSettings
|
||||
from typing import Optional
|
||||
|
||||
class Settings(BaseSettings):
|
||||
API_KEY: str
|
||||
OPENAI_API_KEY: str
|
||||
DATABASE_URL: str
|
||||
SECRET_KEY: str
|
||||
ALGORITHM: str = "HS256"
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
Reference in New Issue
Block a user