Yassine Mhirsi
commited on
Commit
·
170053d
1
Parent(s):
24cfb63
Add model_config to HealthResponse in health.py for enhanced configuration options
Browse files- models/health.py +3 -1
models/health.py
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
"""Pydantic schemas for health check endpoints"""
|
| 2 |
|
| 3 |
-
from pydantic import BaseModel
|
| 4 |
|
| 5 |
|
| 6 |
class HealthResponse(BaseModel):
|
| 7 |
"""Health check response"""
|
|
|
|
|
|
|
| 8 |
status: str
|
| 9 |
model_loaded: bool
|
| 10 |
device: str
|
|
|
|
| 1 |
"""Pydantic schemas for health check endpoints"""
|
| 2 |
|
| 3 |
+
from pydantic import BaseModel, ConfigDict
|
| 4 |
|
| 5 |
|
| 6 |
class HealthResponse(BaseModel):
|
| 7 |
"""Health check response"""
|
| 8 |
+
model_config = ConfigDict(protected_namespaces=())
|
| 9 |
+
|
| 10 |
status: str
|
| 11 |
model_loaded: bool
|
| 12 |
device: str
|