mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge pull request #15658 from BerriAI/litellm_response_mode_add_health
Add support for responses mode in health check
This commit is contained in:
commit
3b1fdb56b9
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue