mirror of
https://github.com/sstent/foodplanner.git
synced 2026-01-30 05:31:35 +00:00
added LLM data extractiondocker compose up --build -d --force-recreate; docker compose logs -f
This commit is contained in:
@@ -1,3 +1,24 @@
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from functools import lru_cache
|
||||
from typing import Optional
|
||||
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
class Settings(BaseSettings):
|
||||
"""
|
||||
Application settings.
|
||||
Settings are loaded from environment variables.
|
||||
"""
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
|
||||
DATABASE_URL: str
|
||||
SECRET_KEY: str
|
||||
ALGORITHM: str
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES: int
|
||||
|
||||
|
||||
@lru_cache()
|
||||
def get_settings():
|
||||
return Settings()
|
||||
Reference in New Issue
Block a user