feat: add new folder
This commit is contained in:
6
gig-poc/apps/api/app/utils/ids.py
Normal file
6
gig-poc/apps/api/app/utils/ids.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from datetime import datetime
|
||||
from uuid import uuid4
|
||||
|
||||
|
||||
def generate_id(prefix: str) -> str:
|
||||
return f"{prefix}_{datetime.now().strftime('%Y%m%d%H%M%S')}_{uuid4().hex[:6]}"
|
||||
5
gig-poc/apps/api/app/utils/prompts.py
Normal file
5
gig-poc/apps/api/app/utils/prompts.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def load_prompt(path: Path) -> str:
|
||||
return path.read_text(encoding="utf-8")
|
||||
Reference in New Issue
Block a user