5b92553148
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
923 B
Python
29 lines
923 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str = "postgresql+asyncpg://meetproto:changeme@db:5432/meetproto"
|
|
redis_url: str = "redis://redis:6379/0"
|
|
jwt_secret: str = "change-this-to-a-random-secret"
|
|
jwt_algorithm: str = "HS256"
|
|
jwt_expire_minutes: int = 1440
|
|
whisper_model: str = "large-v3"
|
|
whisper_device: str = "cuda"
|
|
whisper_compute_type: str = "float16"
|
|
litellm_model: str = "openrouter/meta-llama/llama-3.1-70b-instruct"
|
|
litellm_api_key: str = ""
|
|
litellm_api_base: str = ""
|
|
upload_dir: str = "/app/uploads"
|
|
export_dir: str = "/app/exports"
|
|
retention_days: int = 90
|
|
telegram_bot_token: str = ""
|
|
telegram_webhook_url: str = ""
|
|
app_host: str = "0.0.0.0"
|
|
app_port: int = 8000
|
|
app_url: str = "http://localhost:8000"
|
|
|
|
model_config = {"env_file": ".env", "extra": "ignore"}
|
|
|
|
|
|
settings = Settings()
|