23 lines
680 B
Python
23 lines
680 B
Python
from pathlib import Path
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
api_key: str = ""
|
|
profiles_dir: Path = Path("/data/profiles")
|
|
artifacts_dir: Path = Path("/data/artifacts")
|
|
jobs_dir: Path = Path("/data/jobs")
|
|
ollama_base_url: str = "http://host.docker.internal:11434"
|
|
ollama_model: str = "qwen3-vl:32b"
|
|
media_timeout_seconds: int = 120
|
|
ollama_timeout_seconds: int = 600
|
|
max_audio_bytes: int = 100 * 1024 * 1024
|
|
max_video_bytes: int = 2 * 1024 * 1024 * 1024
|
|
max_video_frames: int = 24
|
|
|
|
|
|
settings = Settings()
|