SPB Git forge

spb/uqo-chat

Public
14commits 1branches 0releases
1.4 MBsize
maindefault branch
17 days agolast push
Python 64.6% TypeScript 33.7% CSS 0.8%
345 B · 15 lines python
Raw Blame History
1"""Prompt loader (files cached at import time)."""23from __future__ import annotations45from functools import lru_cache6from pathlib import Path78PROMPTS_DIR = Path(__file__).parent91011@lru_cache12def load_prompt(name: str) -> str:13    path = PROMPTS_DIR / f"{name}.md"14    return path.read_text(encoding="utf-8").strip() if path.exists() else ""15