mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Fall back to general caption model when OVERVIEW_MODEL is blank
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user