23 lines
700 B
Python
23 lines
700 B
Python
from pathlib import Path
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_env: str = "development"
|
|
app_data_dir: Path = Path("./data")
|
|
database_path: Path = Path("./data/app.db")
|
|
mistral_api_key: str = ""
|
|
mistral_ocr_model: str = "mistral-ocr-latest"
|
|
mistral_ocr_batch_threshold: int = 3
|
|
mistral_ocr_batch_poll_seconds: int = 10
|
|
mistral_ocr_batch_timeout_seconds: int = 1800
|
|
mistral_ocr_retry_attempts: int = 3
|
|
mistral_ocr_retry_backoff_base: float = 2.0
|
|
deepgram_api_key: str = ""
|
|
|
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
|
|
|
|
|
|
settings = Settings()
|