Add global specialist caption override

This commit is contained in:
Sleeps
2026-10-07 13:23:26 +01:00
parent 11d47f256b
commit 55de8014eb
+3
View File
@@ -50,6 +50,9 @@ class Settings:
"CAPTION_SPECIALIST_MODEL",
"aha2025/llama-joycaption-beta-one-hf-llava:Q4_K_M",
)
caption_force_specialist: bool = os.getenv(
"CAPTION_FORCE_SPECIALIST", "false"
).strip().lower() not in {"0", "false", "no", "off"}
caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180"))
caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120"))
caption_prompt_file: Path = Path(