Spaces:
Sleeping
Sleeping
| """Harbor environment configuration.""" | |
| from __future__ import annotations | |
| from functools import lru_cache | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| """Runtime configuration loaded from environment variables.""" | |
| tasks_data_dir: str = "data/tasks" | |
| openrouter_api_key: str = "" | |
| claim_extractor_model: str = "anthropic/claude-haiku-4.5" | |
| claim_extractor_base_url: str = "https://openrouter.ai/api/v1" | |
| model_config = SettingsConfigDict( | |
| env_prefix="LEX_ENVS_", | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| extra="ignore", | |
| ) | |
| def get_settings() -> Settings: | |
| """Return cached settings instance.""" | |
| return Settings() | |