14 lines
333 B
Python
14 lines
333 B
Python
from pathlib import Path
|
|
|
|
from app.config import SYSTEM_PROMPT_PATH
|
|
|
|
|
|
def load_system_prompt() -> str | None:
|
|
"""
|
|
Reads the system prompt fresh on every call
|
|
"""
|
|
path = Path(SYSTEM_PROMPT_PATH)
|
|
if not path.is_file():
|
|
return None
|
|
text = path.read_text(encoding="utf-8").strip()
|
|
return text or None
|