Files
mirosociety/backend/app/config.py
T
toorandClaude 36b0f2b660 chore: initial commit
- Track MiroSociety source: backend (FastAPI), frontend (Vue3/Vite), docs, configs.
- Add start.sh / deploy.sh for local dev (uv venv + npm + dev servers on 31400/31401).
- Fix pyproject.toml: missing httpx dependency.
- Tighten .gitignore: .env, .venv, node_modules, data/, *.log, uv.lock, frontend/dist, etcd.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-17 13:48:30 +08:00

26 lines
632 B
Python

from pathlib import Path
from pydantic_settings import BaseSettings
_PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
class Settings(BaseSettings):
llm_api_key: str = ""
llm_base_url: str = "https://api.openai.com/v1"
llm_model: str = "gpt-4o-mini"
database_dir: str = str(_PROJECT_ROOT / "data")
host: str = "0.0.0.0"
port: int = 8000
max_concurrent_llm_calls: int = 10
search_enabled: bool = True
max_searches_per_round: int = 5
model_config = {
"env_file": [".env", str(_PROJECT_ROOT / ".env")],
"env_file_encoding": "utf-8",
}
settings = Settings()