You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
mirosociety/backend/app/config.py

25 lines
632 B

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()