Merge pull request #15658 from BerriAI/litellm_response_mode_add_health

Add support for responses mode in health check
This commit is contained in:
Ishaan Jaff 2025-10-17 09:44:34 -07:00 committed by GitHub
commit 3b1fdb56b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5906,6 +5906,7 @@ async def ahealth_check(
"batch",
"rerank",
"realtime",
"responses",
]
] = "chat",
prompt: Optional[str] = None,
@ -6014,6 +6015,10 @@ async def ahealth_check(
"batch": lambda: litellm.alist_batches(
**_filter_model_params(model_params),
),
"responses": lambda: litellm.aresponses(
**_filter_model_params(model_params),
input=prompt or "test",
),
}
if mode in mode_handlers: