Load system prompt from file at module level.
(filename: str)
| 26 | |
| 27 | |
| 28 | def _load_system_prompt(filename: str) -> str: |
| 29 | """Load system prompt from file at module level.""" |
| 30 | try: |
| 31 | prompt_path = Path(__file__).parent / "system_prompts" / filename |
| 32 | if prompt_path.exists(): |
| 33 | return prompt_path.read_text(encoding="utf-8").strip() |
| 34 | except Exception as e: |
| 35 | logger.warning(f"Could not load {filename}: {e}") |
| 36 | return "" |
| 37 | |
| 38 | |
| 39 | DEFAULT_T2V_SYSTEM_PROMPT = _load_system_prompt("gemma_t2v_system_prompt.txt") |