mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-17 07:21:28 +00:00
Make caption prompt and length configurable
This commit is contained in:
@@ -6,6 +6,8 @@ from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from .captioner import DEFAULT_CAPTION_PROMPT
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
@@ -26,6 +28,8 @@ class Settings:
|
||||
"huihui_ai/qwen3-vl-abliterated:4b-instruct-q4_K_M",
|
||||
)
|
||||
caption_timeout_seconds: int = int(os.getenv("CAPTION_TIMEOUT_SECONDS", "180"))
|
||||
caption_max_tokens: int = int(os.getenv("CAPTION_MAX_TOKENS", "120"))
|
||||
caption_prompt: str = os.getenv("CAPTION_PROMPT", DEFAULT_CAPTION_PROMPT)
|
||||
|
||||
data_dir: Path = Path(os.getenv("DATA_DIR", "./data")).resolve()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user