|
|
"""Core configuration for LocalMate v2.""" |
|
|
|
|
|
from pydantic_settings import BaseSettings |
|
|
|
|
|
|
|
|
class Settings(BaseSettings): |
|
|
"""Application settings loaded from environment.""" |
|
|
|
|
|
|
|
|
app_env: str = "local" |
|
|
app_debug: bool = True |
|
|
|
|
|
|
|
|
supabase_url: str |
|
|
supabase_anon_key: str |
|
|
supabase_service_role_key: str |
|
|
database_url: str |
|
|
|
|
|
|
|
|
neo4j_uri: str |
|
|
neo4j_username: str |
|
|
neo4j_password: str |
|
|
|
|
|
|
|
|
google_api_key: str |
|
|
|
|
|
|
|
|
google_client_id: str |
|
|
jwt_secret: str |
|
|
|
|
|
|
|
|
megallm_api_key: str | None = None |
|
|
megallm_base_url: str = "https://ai.megallm.io/v1" |
|
|
|
|
|
|
|
|
huggingface_api_key: str | None = None |
|
|
|
|
|
|
|
|
default_gemini_model: str = "gemini-2.0-flash" |
|
|
default_megallm_model: str = "deepseek-ai/deepseek-v3.1-terminus" |
|
|
embedding_model: str = "text-embedding-004" |
|
|
|
|
|
class Config: |
|
|
env_file = ".env" |
|
|
extra = "ignore" |
|
|
|
|
|
|
|
|
settings = Settings() |
|
|
|
|
|
|