Daankular's picture
download
raw
996 Bytes
from __future__ import annotations
from pathlib import Path
from . import debug_bootstrap as _debug_bootstrap
_debug_bootstrap.bootstrap_deepy_debug()
_DEEPY_DIR = Path(__file__).resolve().parent
DEFAULT_SYSTEM_PROMPT_PATH = _DEEPY_DIR / "default_system_prompt.txt"
def load_default_system_prompt() -> str:
try:
return DEFAULT_SYSTEM_PROMPT_PATH.read_text(encoding="utf-8").strip()
except FileNotFoundError as exc:
raise FileNotFoundError(f"Deepy default system prompt file not found: {DEFAULT_SYSTEM_PROMPT_PATH}") from exc
DEFAULT_SYSTEM_PROMPT = load_default_system_prompt()
def __getattr__(name: str):
if name in {"DEBUG_DEEPY_ENABLED", "DEBUG_DEEPY_LOG_PATH"}:
return getattr(_debug_bootstrap, name)
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
__all__ = [
"DEBUG_DEEPY_ENABLED",
"DEBUG_DEEPY_LOG_PATH",
"DEFAULT_SYSTEM_PROMPT",
"DEFAULT_SYSTEM_PROMPT_PATH",
"load_default_system_prompt",
]

Xet Storage Details

Size:
996 Bytes
·
Xet hash:
792487bd50ddd2a7a2e730e4075489c567824a48af97ff39f5fa97d60a37dfb1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.