Spaces:
Running
Running
expose rate limit health state
Browse files
api.py
CHANGED
|
@@ -321,6 +321,7 @@ def health() -> dict[str, Any]:
|
|
| 321 |
"status": "ok",
|
| 322 |
"inference": "remote_provider_configured" if provider_configured else "fallback_or_unconfigured",
|
| 323 |
"authentication": "required" if require_auth else "optional",
|
|
|
|
| 324 |
"persistence": persistence,
|
| 325 |
"local_embeddings": os.getenv("OPENCODEREVIEW_ALLOW_LOCAL_EMBEDDINGS", "false").lower()
|
| 326 |
in {"1", "true", "yes", "on"},
|
|
|
|
| 321 |
"status": "ok",
|
| 322 |
"inference": "remote_provider_configured" if provider_configured else "fallback_or_unconfigured",
|
| 323 |
"authentication": "required" if require_auth else "optional",
|
| 324 |
+
"rate_limit_per_minute": int(os.getenv("OCR_RATE_LIMIT_PER_MINUTE", "0") or 0),
|
| 325 |
"persistence": persistence,
|
| 326 |
"local_embeddings": os.getenv("OPENCODEREVIEW_ALLOW_LOCAL_EMBEDDINGS", "false").lower()
|
| 327 |
in {"1", "true", "yes", "on"},
|