Spaces:
Sleeping
Sleeping
| """Configuration settings for the application.""" | |
| from typing import List | |
| from pydantic_settings import BaseSettings | |
| class Settings(BaseSettings): | |
| """Settings for the application.""" | |
| OPENAI_API_KEY: str | |
| AIDER_MODEL: str = "gpt-4o" | |
| TEMP_DIR_PREFIX: str = "aider_websocket_" | |
| ADMIN_API_KEY: str | |
| AZURE_API_KEY: str | |
| AZURE_API_VERSION: str | |
| AZURE_API_BASE: str | |
| # AIDER_MODEL_METADATA_FILE: str = ".aider.model.metadata.json" | |
| # AIDER_GITIGNORE: bool = True | |
| EXCLUDE_PATTERNS: List[str] = [ | |
| "__pycache__", | |
| "*.pyc", | |
| "*.pyo", | |
| "*.pyd", | |
| ".git", | |
| ".gitignore", | |
| ".env", | |
| ".DS_Store", | |
| "*.log", | |
| ".pytest_cache", | |
| ".coverage", | |
| ".mypy_cache", | |
| ".idea", | |
| ".vscode", | |
| ] | |
| class Config: | |
| """Settings configuration.""" | |
| env_file = ".env" | |
| case_sensitive = True | |
| settings = Settings() | |