31 lines
861 B
Python
31 lines
861 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
database_url: str = "sqlite+aiosqlite:///./meetnote.db"
|
|
|
|
minio_endpoint: str = "127.0.0.1:9000"
|
|
minio_region: str = "us-east-1"
|
|
minio_bucket: str = "meetnote"
|
|
minio_access_key: str = "minioadmin"
|
|
minio_secret_key: str = "minioadmin"
|
|
minio_secure: bool = False
|
|
minio_public_endpoint: str = "http://127.0.0.1:9000"
|
|
|
|
groq_api_key: str = ""
|
|
groq_model: str = "whisper-large-v3"
|
|
|
|
poe_api_key: str = ""
|
|
poe_model: str = "Claude-Sonnet-4.6"
|
|
|
|
cors_origins: str = "http://localhost:4490"
|
|
|
|
@property
|
|
def cors_origins_list(self) -> list[str]:
|
|
return [o.strip() for o in self.cors_origins.split(",") if o.strip()]
|
|
|
|
|
|
settings = Settings()
|