Fall back to general caption model when OVERVIEW_MODEL is blank

This commit is contained in:
Sleeps
2026-10-08 15:46:06 +01:00
parent 8817e483a7
commit d3b709d7c8
+5 -4
View File
@@ -56,10 +56,11 @@ class Settings:
caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180"))
caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120"))
# Text-only condensation of existing Trickplay caption windows.
overview_model: str = os.getenv(
"OVERVIEW_MODEL", os.getenv("CAPTION_GENERAL_MODEL", os.getenv(
"CAPTION_MODEL", "huihui_ai/qwen3-vl-abliterated:4b-instruct-q4_K_M"
))
overview_model: str = (
os.getenv("OVERVIEW_MODEL")
or os.getenv("CAPTION_GENERAL_MODEL")
or os.getenv("CAPTION_MODEL")
or "huihui_ai/qwen3-vl-abliterated:4b-instruct-q4_K_M"
)
overview_timeout_seconds: int = int(os.getenv("OVERVIEW_TIMEOUT_SECONDS", "240"))
caption_meili_batch_size: int = max(