CMVR-AI-ANALYSIS/app/config.py

29 lines
923 B
Python
Raw Normal View History

2026-08-13 16:56:32 +08:00
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
sglang_fast_base_url: str = ""
sglang_accurate_base_url: str = ""
sglang_api_key: str = ""
sglang_timeout_seconds: int = 600
vision_ollama_fallback_enabled: bool = True
2026-08-13 16:56:32 +08:00
max_audio_bytes: int = 100 * 1024 * 1024
max_video_bytes: int = 2 * 1024 * 1024 * 1024
video_sampling_frame_limit: int = 100
max_video_context_tokens: int = 262144
2026-08-13 16:56:32 +08:00
settings = Settings()