mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Merge 2526992518 into e52f05566d
This commit is contained in:
commit
b2c081a384
1 changed files with 7 additions and 0 deletions
|
|
@ -1984,6 +1984,13 @@ async def test_model_connection(
|
|||
# Clean the result for display
|
||||
cleaned_result: Final = _clean_endpoint_data({**litellm_params, **result}, details=True)
|
||||
|
||||
if "error" in result:
|
||||
verbose_proxy_logger.error(
|
||||
"test_model_connection failure for model '%s': %s",
|
||||
litellm_params.get("model", "unknown"),
|
||||
result["error"],
|
||||
)
|
||||
|
||||
return {
|
||||
"status": "error" if "error" in result else "success",
|
||||
"result": cleaned_result,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue