Spaces:
Sleeping
Sleeping
Deployment commited on
Commit ·
ba96e16
1
Parent(s): 6a97952
Fix: Suppress Pydantic warning for model_name field
Browse files
config.py
CHANGED
|
@@ -47,6 +47,7 @@ class Settings(BaseSettings):
|
|
| 47 |
env_file = ".env"
|
| 48 |
case_sensitive = False
|
| 49 |
extra = "allow" # Allow extra fields
|
|
|
|
| 50 |
|
| 51 |
def __init__(self, **data):
|
| 52 |
# Load from environment with fallbacks
|
|
|
|
| 47 |
env_file = ".env"
|
| 48 |
case_sensitive = False
|
| 49 |
extra = "allow" # Allow extra fields
|
| 50 |
+
protected_namespaces = ('settings_',) # Allow model_ namespace
|
| 51 |
|
| 52 |
def __init__(self, **data):
|
| 53 |
# Load from environment with fallbacks
|