Spaces:
Sleeping
Sleeping
File size: 945 Bytes
acd245a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
"""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()
|