Spaces:
Sleeping
Sleeping
Commit ·
5726faa
1
Parent(s): 625ed28
feat(config): add Settings class extending pydantic BaseSettings
Browse files- server/config.py +10 -0
server/config.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pydantic_settings import BaseSettings
|
| 2 |
+
|
| 3 |
+
class Settings(BaseSettings):
|
| 4 |
+
app_name: str = "RedTeamOS"
|
| 5 |
+
debug: bool = False
|
| 6 |
+
max_turns: int = 10
|
| 7 |
+
|
| 8 |
+
class Config:
|
| 9 |
+
env_file = ".env"
|
| 10 |
+
env_file_encoding = "utf-8"
|