Spaces:
Sleeping
Sleeping
fix(runtime): pick writable DATA_DIR via storage module; create dirs on startup; remove hardcoded /data
649d2d5 | # app/utils.py | |
| import uuid | |
| from fastapi import HTTPException | |
| def ensure_session(session_id: str | None) -> str: | |
| return session_id or str(uuid.uuid4()) | |
| def http400(msg: str): | |
| raise HTTPException(status_code=400, detail=msg) | |