File size: 907 Bytes
b6154b2
 
 
 
 
 
 
 
 
 
 
2552437
b6154b2
 
 
2552437
 
 
b6154b2
 
 
 
 
 
 
 
2552437
b6154b2
 
2552437
b6154b2
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from pydantic_settings import BaseSettings, SettingsConfigDict


class Settings(BaseSettings):
    model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")

    port: int = 7860
    app_base_url: str = ""
    timezone: str = "America/Lima"

    anthropic_api_key: str = ""
    anthropic_model: str = "claude-haiku-4-5"

    google_script_url: str = ""
    google_script_token: str = ""
    sheets_sync_enabled: bool = True
    bootstrap_from_sheets: bool = False
    sync_interval_seconds: int = 300

    sqlite_path: str = "/data/inventario.sqlite"
    whisper_model: str = "tiny"
    whisper_compute_type: str = "int8"
    whisper_device: str = "cpu"

    telegram_bot_token: str = ""
    telegram_webhook_secret: str = ""
    reminder_hour: int = 5
    reminder_minute: int = 0
    expiry_warning_days: int = 7
    memory_short_limit: int = 8


settings = Settings()