mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-07 00:51:38 +00:00

<!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? - Adds ability to test model clients in UI after configrations, before they are used in agents or teams - Adds UI side by side comparison of sessions <img width="1878" alt="image" src="https://github.com/user-attachments/assets/f792d8d6-3f5d-4d8c-a365-5a9e9c00f49e" /> <img width="1877" alt="image" src="https://github.com/user-attachments/assets/5a115a5a-95e1-4956-a733-5f0065711fe3" /> <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number <!-- For example: "Closes #1234" --> Closes #4273 Closes #5728 ## Checks - [ ] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [ ] I've made sure all auto checks have passed.
19 lines
502 B
Python
19 lines
502 B
Python
# api/config.py
|
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URI: str = "sqlite:///./autogen04202.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()
|