mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-12 03:21:14 +00:00

This PR does the following: - Fix warning messages in AGS on launch. - Improve Cli message to include app URL on startup from command line - Minor improvements default gallery generator. (add more default tools) - Improve new session behaviour. ## Related issue number Closes #5097 ## Checks
19 lines
501 B
Python
19 lines
501 B
Python
# api/config.py
|
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URI: str = "sqlite:///./autogen0404.db"
|
|
API_DOCS: bool = False
|
|
CLEANUP_INTERVAL: int = 300 # 5 minutes
|
|
SESSION_TIMEOUT: int = 3600 # 1 hour
|
|
CONFIG_DIR: str = "configs" # Default config directory relative to app_root
|
|
DEFAULT_USER_ID: str = "guestuser@gmail.com"
|
|
UPGRADE_DATABASE: bool = False
|
|
|
|
model_config = {"env_prefix": "AUTOGENSTUDIO_"}
|
|
|
|
|
|
settings = Settings()
|